Fixed an issue about wrong environment was used to start the app

When rails app is hosted by Nginx/Passenger application server,
the environment is wrongly set. This fix is to force the
application server to use production environment.