I add Gem \'unicorn\'
to Gemfile and call rails server unicorn -e production
, but I get a load error. Then I add Gem \'unicorn_rails\'
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
It should be something looks like:
bundle exec unicorn -E production -c config/unicorn.rb
and you should only need unicorn
gem