Express middleware for enabling continuous deployment from github on modulus.io
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.editorconfig
.gitattributes
.gitignore
AUTHORS
CHANGELOG
LICENSE-MIT
README.md
package.json

README.md

continuous-deployment-modulus NPM version

Express middleware for enabling continuous deployment from github on modulus.io

Getting Started

npm install continuous-deployment-modulus --save

Add to your express application before routing...

var cd = require('continuous-deployment-modulus');
app.configure(function() {
  app.use('/deploy', cd());
});

Set up your environment variables in your modulus project...

TODO:

Environment Variables

MODULUS_PROJECT

  • The name of your modulus project that will get deployed

MODULUS_USER

  • The username you use when logging into modulus. If you use a github login, then this is your github username

MODULUS_PWD

  • The password you use when logging into modulus. If you use a github login, then this is your github password

USE_GITHUB

  • If you use a github login, set this to true

GITHUB_TOKEN

  • This is the personal github token you need to create to give the middleware access to pull from your repo. TODO - add instructions on setting this up.