#DEPLOY
node deploy.js -t./example/example.json
edit example.json or example.sql,
{
"name": "api-stp",//required: unique project name
"key_path": "/data/keys",//required: keychain store in path
"hosts": {//optional:set host into /etc/hosts
"api-stp": "127.0.0.1",
"db-stp": "127.0.0.1"
},
"mysql": {//optional
"user": "root",//required:create database user
"file": "/data/www/bknodejs/deploy/example.sql",//optional:source from sql file
"database": {//optional
"name": "stp",//required:db name
"user": "stp_dev",//required:user name
"grant": "SELECT,UPDATE,INSERT,CREATE,ALTER,INSERT,DELETE,LOCK"//required: grant rights for user
}
},
"nginx": {//optional
"path": "/usr/local/nginx/conf/vhost",//required:nginx configuration path
"port": "80",//r:port
"server_name": "api-stp",//r:server name
"root": "/data/www/stp/server"//r: root of project
}
}