Phusion Passenger Error: You have activated rack 1.2.1, but your Gemfile requires rack 1.2.2

后端 未结 9 2072
清酒与你
清酒与你 2020-12-23 21:43

I\'m trying to run a Ruby on Rails app on a Dreamhost shared server. All is well so far except one weird bug I have not been able to unravel.

Sometimes when I visit

9条回答
  •  [愿得一人]
    2020-12-23 22:32

    I solved this way on Dreamhost:

    Remove from Gemfile any line: gem 'rack', ....

    rm Gemfile.lock
    rm -rf .bundle
    rm -rf  vendor/bundle
    

    install / use the gems locally and regenerates the file 'Gemfile.lock' with:

    bundle install
    

    install gems in vendor/bundle

    bundle install --deployment
    

    restart:

    touch tmp/restart.txt
    

提交回复
热议问题