-
Notifications
You must be signed in to change notification settings - Fork 7
Home
arreche edited this page Dec 5, 2016
·
2 revisions
Setup a mongo database with a user in https://mlab.com
## Deploying to https://zeit.co/now
- Install the CLI
npm install -g now
- 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
- Test the service
curl https://async-voter-mxfubrghjh.now.sh/stories
Deploying to https://push.drie.co/
- Generates an app name
app_name=$(curl -s http://m.rang.app.push.drieapp.co)
- Add a new remote
git remote add drie ${app_name}.app@push.drieapp.co:code.git
- Deploy application
git push --set-upstream drie master
- 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
- Test the service
curl http://master.${app_name}.app.push.drieapp.co/stories