Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to Heroku with Redis #21

Closed
khamaileon opened this issue Jun 1, 2015 · 2 comments
Closed

Deploy to Heroku with Redis #21

khamaileon opened this issue Jun 1, 2015 · 2 comments

Comments

@khamaileon
Copy link

Is there anyway to deploy on Heroku with a redis database via the "Deploy to Heroku" button ?

@FZambia
Copy link
Member

FZambia commented Jun 1, 2015

Hello! It's not possible as to use Redis when deploying via "Deploy to Heroku" button in this repo. Redis must be set in addons array in app.json file. And also Procfile must be something like:

web: centrifugo --config=config.json --port=$PORT --address=0.0.0.0 --web=./extras/web/app --config=./extras/heroku/config.json``` --engine=redis --redis_url=$REDISTOGO_URL

So it's possible to run Centrifugo with Redis engine on Heroku but using custom receipt.

Also note that free Heroku dynos go to sleeping mode sometimes so Centrifugo does not feel good in such conditions. Free Heroku instances are perfect for demo and test purposes. I personally used only free dynos and can't say how non-free behave with Centrifugo but as far as I know if application has > 1 dyno it never goes to sleeping mode

@khamaileon
Copy link
Author

OK! Thanks for the reply and keep up the good work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants