Skip to content

arno-react/node-auto-deploy

Repository files navigation

auto-deploy

node auto deploy 项目使用 Nuxt express element

测试地址 http://118.24.156.247:3000/ 用户/密码 admin/123456

安装

  • 程序需要ssh 要用 password 登录 要装sshpass
yum install -y wget && wget http://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz && tar xvzf sshpass-1.06.tar.gz && cd ./sshpass-1.06 && ./configure && make && make install
  • 修改数据库配置 /server/config/index.js
module.exports = {
  mysql:{
    host  : '127.0.0.1',
    user  : 'root',
    password : '123456',
    database : 'auto_deploy',
    port:'3306'
  }
};
  • 导入sql到数据库 sql文件在 /server/sql/iauto_deploy_2019-04-19.sql

  • 安装依赖 打包

# install dependencies
$ npm install

# serve with hot reload at localhost:3000  // 开发环境 端口可以 nuxt.confing.js 修改
$ npm run dev

# build for production and launch server
$ npm run build

For detailed explanation on how things work, checkout Nuxt.js docs.

  • 使用pm2为项目守护启动
# 安装pm2
$ npm install pm2 -g 
# 启动
$ pm2 start npm --name "autodeploy" -- run start
# 重新启动
$ pm2 restart  autodeploy
开发功能
  • 核心功能自动部署
  • 用户权限
  • 定时任务
  • 支持SVN

About

node-auto-deploy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published