This document will explain how to install The Lounge 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 The Lounge, you need to connect to servers and channels again from scratch. In practice, you get no always-on functionality with an unpaid Heroku account.
Begin by logging in with the Heroku toolbelt:
Clone the repository and install The Lounge from source:
git clone https://github.com/thelounge/lounge cd lounge npm install NODE_ENV=production npm run build
lounge/ directory, run:
Step 4: (optional)
This step is only useful if you want to run The Lounge 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, run the following in the
./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