Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deploy-app

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deploy-app

Deploy apps, projects or stuff using scp

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

deploy-app

Build Status NPM version

Lightweight deployment solution for node apps, projects and stuff

$ deploy-app -d prod

Installation

$ npm install deploy-app

Usage

Init

Run in project root

$ deploy-app init

Adds a deploy-app-config.json config file in your project folder

{
  "prod":{
    "user": "deploy",
    "host": "192.168.0.1",
    "port": "22",
    "files": "build src *.json app.js",
    "path": "~/projectFolder",
    "pre-deploy-local" : "npm run build",
    "pre-deploy-remote" : "mkdir projectFolder; cd projectFolder; foo bar",
    "post-deploy" : "npm install --production; node app.js"
  },
  "dev":{},
  "staging":{}
}

Deploy

To deploy prod, simply run:

$ deploy-app -d prod

That's it.
Happy coding!

Help

For help see:

$ deploy-app -h

Docs

{
  "prod":{
    //  Used to connect to SSH and SCP
    "user": "deploy",
    "host": "192.168.0.1",
    "port": "22",
    //  Add files and folders seperated by " " space
    "files": "build src *.json app.js",
    // Path to project on target server
    "path": "~/projectFolder",
    // Can be multiple commands separated by the character ";"
    // Commands to execute locally before deploying
    "pre-deploy-local" : "npm run build",
    // Commands to execute remote before deploy
    "pre-deploy-remote" : "mkdir projectFolder; cd projectFolder; foo bar",
    // Commands to execute remote after deploy (in project root)
    "post-deploy" : "npm install --production; node app.js"
  },
  //  Add multiple environments
  "dev":{},
  "staging":{}
}

License

MIT

Keywords

FAQs

Package last updated on 11 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc