3

I'm getting some Phusion Passenger errors with Ruby On Rails

Problem is it's showing my environment variables in the error report. This is great in development, but what happens if my server faulters in production?

Is there any way in Phusion Passenger to disable displaying the environment vars?

1 Answers1

1

You need to change to production mode. The steps are outlined here. For nginx installations (like what I use) you need to set passenger_app_env to "production" in /opt/nginx/conf/nginx.conf . Here is an example of how it should look:

...
http {
    # Only for development purposes.
    # For production environment, set it accordingly (i.e. production vs development)
    # Remove this line when you upload an actual application.
    # For * TESTING * purposes only.
    passenger_app_env production;
    #passenger_app_env development;
    #passenger_friendly_error_pages off;
....