看板 Ruby 關於我們 聯絡資訊
環境: Ruby 1.8.7 Rails 3.0.9 狀況: 我按照http://devcenter.heroku.com/articles/quickstart這篇文章 要嘗試把我練習的程式deploy到heroku 不過就在我下#git push heroku master時 跑一跑出現了問題 -----> Heroku receiving push -----> Ruby/Rails app detected -----> Detected Rails is not set to serve static_assets Installing rails3_serve_static_assets... done -----> Configure Rails 3 to disable x-sendfile Installing rails3_disable_x_sendfile... done -----> Configure Rails to log to stdout Installing rails_log_stdout... done -----> Gemfile detected, running Bundler version 1.0.7 Unresolved dependencies detected; Installing... Using --without development:test Fetching source index for http://rubygems.org/ Could not find devise-1.4.4 in any of the sources FAILED: http://devcenter.heroku.com/articles/bundler ! Heroku push rejected, failed to install gems via Bundler 這邊讓我卡關很久... 爬了google大神,我試了幾種方法,不過都沒有wrok 方法一: 1. 先下bundle update devise 2. 我的Gemfile也把他改成了 gem "devise", "~> 1.4.8" 3. git add . 4. git commit -m "please work~~" 5. git push heroku master 詭異的事情是...明明我的Gemfile.lock上面show的是 devise (1.4.8) 怎麼在push到Heroku時卻還是1.4.4!? 方法二: 我乾脆把devise 給block掉 然後在commit 和 push 不過....還是一樣會跳出devise-1.4.4的error!!! 這這這到底?! 該如何解決阿阿阿阿阿~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.96.29.49
godfat:如果你確定你沒有步驟做錯的話,那可能是 heroku bug? 10/17 22:48
logooo77:請用 1.9.2 版本 10/19 02:28
yzugsr:檢查一下你有用git branch嗎? 10/19 22:53
alohaiscool:我想應該是git那邊出了問題... 10/25 19:22
alohaiscool:我重新開過資料夾clone之前的code回來,結果成功... 10/25 19:23