我的服务器在生产环境中启动 Webrick 而不是 Unicorm/Nginx
My server is starting Webrick instead of Unicorm/Nginx on production
为了拥有一个 Unicorn/Nginx 应用 运行,我已按照以下步骤操作:
https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04
除了数据库说明外,我已经完成了那里指示的所有操作(因为我将使用 Mongo)。但是当我执行(ip edited)时:
RAILS_ENV=production rails server --binding=123.456.789.01
Webrick 服务器已启动:
/home/username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/activesupport-4.0.2/lib/active_support/values/time_zone.rb:282: warning: circular argument reference - now
=> Booting WEBrick
=> Rails 4.0.2 application starting in production on http://123.456.789.01:3000
=> Run `rails server -h` for more startup options
我需要检查什么才能让生产设置正常工作吗?我不知道我需要验证什么。
我相信你已经跳过了你提到的 tutorial 中的一些步骤......在你安装了 unicorn 和 nginx 之后你应该能够启动它们:
sudo service unicorn_appname start
sudo service nginx restart
为了拥有一个 Unicorn/Nginx 应用 运行,我已按照以下步骤操作: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04 https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04
除了数据库说明外,我已经完成了那里指示的所有操作(因为我将使用 Mongo)。但是当我执行(ip edited)时:
RAILS_ENV=production rails server --binding=123.456.789.01
Webrick 服务器已启动:
/home/username/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/activesupport-4.0.2/lib/active_support/values/time_zone.rb:282: warning: circular argument reference - now
=> Booting WEBrick
=> Rails 4.0.2 application starting in production on http://123.456.789.01:3000
=> Run `rails server -h` for more startup options
我需要检查什么才能让生产设置正常工作吗?我不知道我需要验证什么。
我相信你已经跳过了你提到的 tutorial 中的一些步骤......在你安装了 unicorn 和 nginx 之后你应该能够启动它们:
sudo service unicorn_appname start
sudo service nginx restart