Skip to content
arreche edited this page Dec 5, 2016 · 2 revisions

How to deploy

Setup a mongo database with a user in https://mlab.com

## Deploying to https://zeit.co/now

  1. Install the CLI npm install -g now
  2. Deploy application with the database URL and server port (Ignore the .env error) now -e MONGODB=mongodb://asyncvoter:asyncvoter@ds147537.mlab.com:47537/asyncvoter -e PORT=3000
  3. Test the service curl https://async-voter-mxfubrghjh.now.sh/stories

Deploying to https://push.drie.co/

  1. Generates an app name app_name=$(curl -s http://m.rang.app.push.drieapp.co)
  2. Add a new remote git remote add drie ${app_name}.app@push.drieapp.co:code.git
  3. Deploy application git push --set-upstream drie master
  4. Set database URL ssh ${app_name}.app@push.drieapp.co configure environment -s MONGODB=mongodb://asyncvoter:asyncvoter@ds147537.mlab.com:47537/asyncvoter -s PORT=3000
  5. Test the service curl http://master.${app_name}.app.push.drieapp.co/stories
Clone this wiki locally