Question
Nginx and Unicorn Multiple Rails apps
Hello,
I followed this guide and everything went smooth!
https://www.digitalocean.com/community/tutorials/how-to-deploy-rails-apps-using-unicorn-and-nginx-on-centos-6-5
I got a rails app up and running with no problems. But I have spent a lot of time tiring to get multiple apps running with no success.
I have tried to edit the TheApp/config/unicorn.rb for each app and /etc/nginx/conf.d/default.conf.
Are there any examples of how these files should be setup for multiple apps?
Also: When I run unicorn_rails -c config/unicorn.rb -D for the 2nd app i get the following error:
/usr/local/rvm/gems/ruby-2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:75:in `read': No such file or directory @ rb_sysopen - config/unicorn.rb (Errno::ENOENT)
Can anyone help please?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
+1