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

auto-deploy

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-deploy

auto deploy github based project and others

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

auto-deploy

auto deploy github based project and others

designing version downloads linux coverage climate dependencies

language: English also available in: Spanish -

Use

Add launch line to package.json

{
  "scripts": {
    "auto-deploy": "auto-deploy-run server/server.js"
  }
}

Use the module in your server

var autoDeploy = require('auto-deploy');

app.use(apUrl, autoDeploy.middleware({pid:12345}));

To log into a text file you can pass the filename as an argument to auto-deploy-run, for example:

{
  "scripts": {
    "auto-deploy": "auto-deploy-run -l server.log server/server.js"
  }
}

Then start the server with

npm run-script auto-deploy

Then run commands in the URL of the browser, for example:

http://theserver.zzz/tools/auto-deploy?restart

http://theserver.zzz/tools/auto-deploy?stop&pid=3344

possible improvements

  • the servers checks the local repository to ensure it's cleaness (to prevent conflicts with the git pull)
  • the possibility to register a function that checks the integrity and status of the server.
    • in the case where it's safe to shutdown the server, it returns an explanatory message and a random code to force. ie: force=4312
    • the force option executes the indicated action anyway.

License

MIT

................

FAQs

Package last updated on 30 Jun 2015

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