Closed heygambo closed 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.
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?
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.
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.
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 :(