[英]Nginx + Unicorn set to production for Rails
I'm deploying a rails app into production. 我正在将Rails应用程序部署到生产中。
I'm struggling to find a explanation on where one sets the rails_env to production. 我正在努力寻找有关将rails_env设置为生产位置的解释。 Is it done in Unicorn or Nginx.
在Unicorn或Nginx中完成。
The app currently thinks that it is in development I've tried to boot unicorn using sudo service unicorn start -E production
该应用程序当前认为它正在开发中,我曾尝试使用
sudo service unicorn start -E production
引导unicorn
Start your Nginx daemon (it depends on your OS). 启动您的Nginx守护程序(取决于您的操作系统)。 And than unicorn like this:
比像这样的独角兽:
$ unicorn_rails -E production -c /var/www/unicorn/config/unicorn.rb -D
$ unicorn_rails -E生产-c /var/www/unicorn/config/unicorn.rb -D
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.