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

后端 未结 3 503
鱼传尺愫
鱼传尺愫 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:40

    It should be something looks like:

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

    and you should only need unicorn gem

提交回复
热议问题