noup
v0.2.4
Published
Noup is a deployment tool, it provides common features:
Downloads
2
Readme
noup
Noup is a deployment tool, it provides common features:
- Setup
NodeJS
enviroment for standardNodeJS
projects:nvm
,node
- Deploy
node
project, deploy your latest project's commit - Start/Stop/Show logs by using
pm2
Installation
npm i -g noup
Create a noup project
mkdir ~/my-first-noup
cd ~/my-first-noup
noup init
it 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 requirepem
orusername
,password
so 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 --help
Debug
Set VERBOSE
flag to true to see full logs. For example
VERBOSE=true noup setup