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

后端 未结 3 502
鱼传尺愫
鱼传尺愫 2021-01-01 16:58

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\'

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 17:38

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

    works for me

提交回复
热议问题