My server is starting Webrick instead of Unicorm/Nginx on production

567 views Asked by At

I've followed these steps in order to have a Unicorn/Nginx app running: 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

I've done everything indicated there with exception of the databases instructions (because I'm going to use Mongo). However when I execute (ip edited):

RAILS_ENV=production rails server --binding=123.456.789.01

a Webrick server is started:

/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

Is there something I need to check to get the production setup working fine? I don't know what I need to verify.

1

There are 1 answers

5
gabrielhilal On BEST ANSWER

I believe you have skipped some steps in the tutorial you have mentioned... After you install unicorn and nginx you should be able to start them:

sudo service unicorn_appname start
sudo service nginx restart