Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Lightweight deployment solution for node apps, projects and stuff
$ deploy-app -d prod
$ npm install deploy-app
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":{}
}
To deploy prod
, simply run:
$ deploy-app
-d prod
That's it.
Happy coding!
For help see:
$ deploy-app -h
{
"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":{}
}
FAQs
Deploy apps, projects or stuff using scp
We found that deploy-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.