bk_deploy

1.0.0 • Public • Published

#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
    	}
}

Readme

Keywords

none

Package Sidebar

Install

npm i bk_deploy

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

5.84 kB

Total Files

5

Last publish

Collaborators

  • voidest