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
Running on Heroku #73
Comments
First of all, sorry for my late answer. From fnordmetric v0.7.3 upwards you can do the following:
|
This seems to work fine when you have FnordMetric.embedded(
:redis_url => ENV['REDISTOGO_URL'] || "redis://localhost:6379",
:inbound_stream => ["0.0.0.0", "1337"]
) And, any idea how best to set the inbound_stream port on heroku? |
hm, maybe you are looking for this? FnordMetric.server_configuration = {
:redis_url => ENV['REDISTOGO_URL'] || "redis://localhost:6379",
:inbound_stream => ["0.0.0.0", "1337"]
}
FnordMetric.standalone |
Heroku won't allow to spawn a random port so this line :inbound_stream => ["0.0.0.0", "1337"] Will fail in Heroku. Finally, thank you for your answer and your willingness to help, you're awesome. |
You can disable the inbound stream by passing: FnordMetric.server_configuration = {
:redis_url => ENV['REDISTOGO_URL'] || "redis://localhost:6379",
:inbound_stream => false
}``` |
I created a sample repo at https://github.com/fairchild/fnordystats. I think it can likely be done much cleaner than i have done there. |
I'm having a hard time trying to run Fnordmetric in Heroku.
Basically, what happens is that Heroku won't allow to start the EM worker on the same dyno.
Is there a way to manually run the Fnordmetric worker using a rake command or something similar?
The text was updated successfully, but these errors were encountered: