This document will explain how to install Shout on Heroku. If you want to learn about Heroku you should read their documentation.
Please be aware that Heroku automatically kills unpaid apps after 1 hour of inactivity, and then spins them back up the next time a request comes in. This does not apply to paid accounts. If you scale up to two servers and pay for the second one, you get two always-on servers. Read more
When heroku kills shout, you need to connect to servers and channels again from scratch. In practice, you get no always-on functionality with an unpaid heroku account.
Okay, let’s get down to business:
Begin by logging in with the Heroku toolbelt:
$ heroku login
Clone and run the
$ git clone http://github.com/erming/shout $ cd shout $ npm install
While standing in the
shout/ directory, run:
Step 4: (optional)
This step is only useful if you want to run Shout with users accounts.
Procfile and edit the content to look like this:
web: node index --private --home /app
You can read more about Procfiles here.
To create users, stand in the
shout/ directory and call this:
$ ./index.js --home . add <username>
Time to publish to Heroku!
If you’ve made any changes to the repository (like adding users or the Profile), don’t forget to save the changes with
$ git add . $ git commit -m "Added Heroku files"
And with that done, lets go ahead and push to Heroku:
$ git push heroku