开发者

Passenger & Rails refuse to start up in production environment

开发者 https://www.devze.com 2023-01-26 07:15 出处:网络
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 no

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 star开发者_JAVA百科ts 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消