nginx passenger - issues setting environment to staging

228 views Asked by At

I'm running nginx with passenger on el7

the problem i am facing is when running with staging environment i am getting constant http 500 error.

I tried all the options i could find including:

passenger_app_env staging; / rails_env staging; / rack_env staging; 

i am getting constant 500 error, and i can see in the logs that i am not reaching the rails server logic.

when i am switching that configuration to:

rails_env development / rails_env productions

everything works fine.

1

There are 1 answers

4
tomerz On BEST ANSWER

eventually the problem was in the staging.rb file and since i was using passenger it masked the error and just gave me 500.

eventually i moved from passenger to puma....which allowed me to debug and log rails with ease.