How to make Fay flee to Hereka

I have an application running on Heroku and I have a messaging system. I used the Faye gem, which has a Faye server to handle real-time message notifications.

How can I run this Faye server in production on Heroku?

It has its own port and ENV variable.

Please inform.

+4
source share
1 answer

You should run it as a background job if it is its own server.

https://devcenter.heroku.com/articles/background-jobs-queueing

You may be able to run it from the rake task.

https://devcenter.heroku.com/articles/rake

, , .

https://devcenter.heroku.com/articles/scheduler

heroku config, . heroku config:set .

heroku run bash .

, Heroku.

0

All Articles