0.2.4 • Published 6 years ago

noup v0.2.4

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

noup

Noup is a deployment tool, it provides common features:

  • Setup NodeJS enviroment for standard NodeJS 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 require pem or username, password so you have to add your own ssh key to servers
  • instances: numbers of processes of your deployed project
  • path: absolute path or git 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
0.2.4

6 years ago

0.2.2

6 years ago

0.2.0

6 years ago

0.1.8

6 years ago

0.1.6

6 years ago

0.1.4

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago

0.0.8

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago