deploy-app
Lightweight deployment solution for node apps, projects and stuff
$ deploy-app -d prod
Installation
$ npm install deploy-app
Usage
Init
Run in project root
$ deploy-app init
Adds a deploy-app-config.json
config file in your project folder
{
"prod":{
"user": "deploy",
"host": "192.168.0.1",
"port": "22",
"files": "build src *.json app.js",
"path": "~/projectFolder",
"pre-deploy-local" : "npm run build",
"pre-deploy-remote" : "mkdir projectFolder; cd projectFolder; foo bar",
"post-deploy" : "npm install --production; node app.js"
},
"dev":{},
"staging":{}
}
Deploy
To deploy prod
, simply run:
$ deploy-app -d prod
That's it.
Happy coding!
Help
For help see:
$ deploy-app -h
Docs
{
"prod":{
"user": "deploy",
"host": "192.168.0.1",
"port": "22",
"files": "build src *.json app.js",
"path": "~/projectFolder",
"pre-deploy-local" : "npm run build",
"pre-deploy-remote" : "mkdir projectFolder; cd projectFolder; foo bar",
"post-deploy" : "npm install --production; node app.js"
},
"dev":{},
"staging":{}
}
License
MIT