Develop on windows, run unicorn in production on heroku

后端 未结 2 379
抹茶落季
抹茶落季 2020-12-24 14:42

I have a new Rails project and i decided to give heroku a try, deployment seems very easy there

I am developing on windows, so running unicorn is not a choice, but w

2条回答
  •  眼角桃花
    2020-12-24 15:09

    You can target specific platforms in your Gemfile:

    platforms :ruby do # linux
      gem 'unicorn'
    end
    
    platforms :mswin do
      # gems specific to windows
    end
    

    see the manpages for gemfile for more information.

提交回复
热议问题