I am using unicorn server for locomotive cms installed on digital ocean in ubuntu 12.04. I am wondering how I keep the server running so when I log out of the ssh session the site stays up and running.

This is currently the command I use to get it running

bundle exec unicorn_rails -p 80

Thanks! in advance

有帮助吗?

解决方案

you need to set up unicorn with apache or nginx. here is a guide for apache + unicorn. with that setup you can start and stop server by starting and stopping apache service.

其他提示

This is a guide on how to setup Unicorn with nginX which I have followed and used numerous times.

https://gist.github.com/billie66/3696537

Run Unicorn via bundler:

bundle exec unicorn -c config/unicorn.rb -E production -D -p 8089

Stop Unicron (if you have followed the guide from above)

kill -9 'cat /path/to/your/app/tmp/pids/unicorn.pid'
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top