简体   繁体   中英

Passenger & Rails refuse to start up in production environment

I have a production server that refuses to start up in the 'production' environment. it recently ran Rails 2.x and Passenger 1 (or 2 can't remember) just fine. Upgraded Rails & Passenger and now it starts up in the development environment even though Passenger docs say it should default to production. We haven't changed anything in its default setup.

Though I just tried adding RailsEnv production to the Virtual Hosts file...to no effect.

How can I troubleshoot this? The only output I see in the console is:

server:current elvis$ rails c
Loading development environment (Rails 3.0.3)

and trying to hit app with a web browser presents this dialog after a long delay (30+ secs)

  • Mac OS X Server 10.5.8
  • Rails 3.0.3
  • Passenger 3.0.0
  • MySQL: 5.0.82

Did you install Passenger to Nginx or Apache? You start the Rails app by running the webserver, not rails c . Nginx, for example, will then load the Passenger module which will run your Rails app as needed. So, startup Nginx or Apache and you should be good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM