1.1.3 • Published 5 years ago

deploy-now v1.1.3

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

DEPLOY NOW!

A fast and easy tool to deploy your app via ssh in minutes (no git required)

How it works

  • Bundle your project directory
  • Ignore specified files
  • Upload files
  • Run deploy commands

npm install -g deploy-now

Available Commands

CommandDescription
deploy-nowBundle project and upload to server. Runs the cmd from deploy-now.json in sequence
deploy-now initEasily create deploy-now.json file for the current project.
deploy-now syncSynchronize local changes to your server as you are saving it.

Run command to deploy deploy-now

Its required that you have deploy-now.json in your project root.

# deploy-now.json

{
    "name": "sample-app",
    "host": "159.89.xxx.xx",
    "user": "johndoe",
    "password": "password",
    "ignore": [
        "node_modules/**/*",
        "*.log"
    ],
    "cmd": ["node -v","npm -v"],
    "serverProjectRoot": "/var/app/sample-app/",
    "debug": true
}

Options

OptionDescriptionRequired
nameName of your projectyes
hostServer name or ip address (ssh must be enabled)yes
userAuthenticating user to login withyes
passwordPassword to your account. Do not worry, your password never leaves your local PCif(privateKey) no;
privateKeyFull path to your private key. Usually a .pem fileif(password) no;
ignoreArray of files/folder to ignore. Only glob pattern supported See: https://github.com/isaacs/node-glob#glob-primer (PS: All * will be removed if you are using sync mode)no
cmdArray of commands to execute after upload is completeno, but important
serverProjectRootPath to your app root directory or desired path (it can be created on the fly)yes
debugWanna see the logs on the console? Set it to trueno
runAfterHow long should the watcher wait before it deploys your changes while using sync? Default 10000msno
watchRecursiveShould the watcher watch more than the root dir? Default trueno

Quick and Easy huh?