【发布时间】:2013-12-09 20:06:21
【问题描述】:
我已将我的应用部署到生产服务器。但是我 thing 它没有在生产模式下运行。我这样说是因为它基于 config/environments/development.rb 中的设置发送邮件。这是我的 apache 配置...
#/etc/apache2/sites-available/default
<VirtualHost *:80>
ServerName nso.server.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /home/name/nso/current/public
RailsEnv production
<Directory /home/name/nso/current/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
此外,我正在使用 capistrano 进行部署。所有 capistrano 的东西似乎都工作正常。我确实在 delpoy.rb 中有这一行
set :rails_env, "production"
我需要吗?我可以在我的服务器上运行什么命令来查看它是否真的在生产模式下运行?
【问题讨论】:
标签: ruby-on-rails capistrano passenger