1.1.3 • Published 5 years ago

deployit-cli v1.1.3

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

Deployit

NodeJS CLI library for deploy your project from local to your linux server

Installation

On server and local machine:

npm i -g deployit-cli

Usage

Setup server

server command

Run command:

deployit --setup --username user --password pass --port 12345

Setup local machine

local command

Inside project root run command and edit created "deployit.config.js":

deployit --init

or manually create "deployit.config.js":

module.exports = {
    "name": "app_name",
    "client": {
        "path": "",
        "ignore": [
            "deployit.config.js",
            ".git",
            ".idea",
            "node_modules",
            "src"
        ]
    },
    "deploy": {
        "username": "user",
        "password": "pass",
        "host": "localhost",
        "port": 12345,
        "path": "~/app_folder",
        "post_command": "npm i -g pm2 && npm i && pm2 start index.js --name app_name"
    }
}

Provide info for connect with server:

name : Project name

client.path : Project root

client.ignore : Array\<String> with files or directories what must be ignored

deploy.username : Server Deployit username

deploy.password : Server Deployit password

deploy.host : Server ip or domain

deploy.port : Server Deployit port

deploy.path : Path where must locate your project on server

deploy.post_command : Command will be executed after project deploy

Start

server command

Start Deployit:

deployit --start

Stop

server command

Stop Deployit:

deployit --stop

Reset

server command

Reset Deployit:

deployit --reset

Deploy

local command

Deploy your project to server:

deployit
1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago