Bypassing rack version error using Rails 2.3.5

后端 未结 9 1805
既然无缘
既然无缘 2020-12-05 21:33

I\'m currently on Dreamhost attempting to run a Rails 2.3.5 app.

Here is the situation, Dreamhost\'s servers have Rails 2.2.2 installed. Of course, I can\'t update a

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 22:08

    rake gems:unpack:dependencies doesn't allow you to unpack rake into your vendor/gems folder.

    For the Dreamhost issue, you must do what Matt said. Freeze rails to 2.3.4.

    rake rails:freeze:gems VERSION=2.3.4
    

    Dreamhost uses an older version of Passenger which preloads rack 1.0.0. You can't load rack 1.0.1 once rack 1.0.0 has been preloaded. Therefore, the latest version of rails possible for DH is Rails 2.3.4 and Rack 1.0.0.

提交回复
热议问题