firehoseio / firehose

Build realtime Ruby web applications. Created by the fine folks at Poll Everywhere.
http://firehose.io/
MIT License
726 stars 72 forks source link

how to start in production? #14

Closed heygambo closed 11 years ago

heygambo commented 11 years ago

When starting firehose it always outputs

Starting 1.1.0 'Rockin' Reconnect', in development

is this really the development env?

If true, how can I start in production?

I dont understand the deployment guide :(

willcosgrove commented 11 years ago

It looks like it looks for the RACK_ENV environment variable. So you should be able to run

firehose server RACK_ENV=production

to set the environment to production.

bradgessler commented 11 years ago

Also, set the log level appropriately so that you don't fill up your disk with verbose log files.

Log levels are defined via the Ruby stdlib Logger class http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html

and you can see where the levels are set in Firehose at https://github.com/polleverywhere/firehose/blob/master/lib/firehose/logging.rb#L14

@nerdyglasses what could we do to have better production deployment documentation? Would a Wiki page in here help?

heygambo commented 11 years ago

I missed the first line with the Procfile example in this post: https://gist.github.com/carlo/1027117#file-deploy-rb

Now I understand what foreman is for. RACK_ENV helped a lot!

If I get it running I may try to improve the docs with your help.

heygambo commented 11 years ago

I've got it up and running. I'll submit a pull request in a couple of days to improve the docs a little bit.