noup
v0.2.4
Published
Noup is a deployment tool, it provides common features:
Readme
noup
Noup is a deployment tool, it provides common features:
- Setup
NodeJSenviroment for standardNodeJSprojects:nvm,node - Deploy
nodeproject, deploy your latest project's commit - Start/Stop/Show logs by using
pm2
Installation
npm i -g noupCreate a noup project
mkdir ~/my-first-noup
cd ~/my-first-noup
noup initit will create noup.json file in your project folder
Example noup.json
{
"workers": {
"one": {
"host": "<username>@<ip>",
"instances": 2,
"env": {
"MONGO_URL": ""
}
}
},
"app": {
"name": "bot",
"path": "/Users/macbookpro/Tests/worker",
"commit": ""
},
"env": {
"REDIS_URL": ""
},
"node": "v10.5.0"
}noup.json is easy to follow. However, there are some important fields to keep in mind:
host: noup does not requirepemorusername,passwordso you have to add your own ssh key to serversinstances: numbers of processes of your deployed projectpath: absolute path orgit url. Notice: noup will deploy your latest commits not code in that directory
The project entry is main field of your package.json
Commom steps
# setup server's environment
noup setup
# deploy your project
noup deploy
# start your project
noup start
# stop your project
noup stop
# more details
noup --helpDebug
Set VERBOSE flag to true to see full logs. For example
VERBOSE=true noup setup