How to start rails server in production mode using unicorn and config file?

只愿长相守 提交于 2019-11-30 11:11:57

It should be something looks like:

bundle exec unicorn -E production -c config/unicorn.rb

and you should only need unicorn gem

bundle exec unicorn -p $PORT -c ./config/unicorn.rb

works for me

I put it in the Procfile and then use Foreman to start it off by entering

foreman start

web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb

service unicorn_projectName start

works for me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!