On Nov 9, 11:10 am, "Leandro N. Camargo" <
leandro...@gmail.com> wrote:
> Well, everything is running fine with nginx and passenger on my
> server.
> The only problem is that I realized my rails app is not running as a
> 'staging' environment.
>
> I put the "rails_envstaging;" inside my server { } block and it
> still runs as 'production' environment.
>
> Any guess on this?
I wrote a reply with the same problem that doesn't seem to have
appeared yet. But anyway I found a fix. Add this at the top of your
config.ru
ENV['RAILS_ENV'] = ENV['RACK_ENV'] if !ENV['RAILS_ENV'] && ENV
['RACK_ENV']
If anyone knows a better way, please let me know!