我有一個我在Heroku上部署的rails應用程序。我用幾個不同的機器,我注意到,當我添加新的依賴關係(因此Gemfile.lock
重建),並在家裏我的Windows電腦上做bundle install
,推到Heroku的失敗,出現以下錯誤:爲什麼Heroku不能在Windows中接受我的Gemfile.lock?
Unresolved dependencies detected; Installing...
Windows Gemfile.lock detected, ignoring it.
You have modified your Gemfile in development but did not check
the resulting snapshot (Gemfile.lock) into version control
...
Gemfile.lock
在版本控制下,但Heroku顯然選擇忽略它,因爲它是在Windows中創建的,然後抱怨它在幾秒後丟失。爲什麼會發生?我該如何解決它?
事做CR/LF在Windows VS * nix中? – 2011-05-10 20:17:38
也許?從失敗推送的輸出中判斷,看起來Heroku故意忽略它。 – mranders 2011-05-10 21:19:42
bundler是否可能選擇預編譯的windows二進制文件作爲依賴關係,並將它們列在'Gemfile.lock'中? – matt 2011-05-10 21:37:46