Skip to content

Deploy on Heroku

Siyu edited this page Oct 29, 2018 · 2 revisions

Try it now with Heroku

Deploy an instance on your Heroku account to play around with it!

Warning: When using the free plan, the application goes to sleep after 30 min of inactivity (checkout the pricing).

Deploy

An alternative way to get it running at Heroku is to install the Heroku Toolbelt and follow these steps:

git clone https://github.com/luisomoreau/sigfox-platform.git my-project
cd my-project
heroku apps:create my-project
git push heroku master

If you are not familiar with Heroku, just create an account an follow the procedure:

  1. Create a new app:

Use the heroku branch create app

  1. Build & deploy app:

build app

  1. (Optional) Link the application with a MongoDB MLab database (Free):

Note that if you don't link a database to your application, all the data will be erased every time the application restarts.

  • Go to https://mlab.com and create an account and login.

  • Create a new MongoDB Deployments:

mlab-select-service

  • Select your plan:

mlab-select-plan

  • Select your region:

mlab-select-region

  • Create database:

mlab-create-db

  • Validate:

mlab-validate

  • Create database user:

mlab-create-user

  • Copy your MongoDB URI :

mlab-view-user

  • Go back to your Heroku Dashboard and go to the Settings tab:

heroku-show-env-variables

  • Click on Reveal Config Vars and add your MongoDB URI:

heroku-add-MONGODB_URI

  • Restart all dynos:

heroku-restart-dynos

Clone this wiki locally