我的服务器在生产

时间:2015-06-23 20:25:29

标签: ruby-on-rails ruby nginx unicorn webrick

我已按照以下步骤运行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编辑)时:

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

有什么我需要检查以使生产设置正常工作吗?我不知道我需要验证什么。

1 个答案:

答案 0 :(得分:1)

我相信你已经跳过了你提到的tutorial中的一些步骤......安装unicorn和nginx后你应该可以启动它们了:

sudo service unicorn_appname start
sudo service nginx restart