[問題] Deploy on Heroku , but failed~
環境:
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
推
10/17 22:48, , 1F
10/17 22:48, 1F
→
10/19 02:28, , 2F
10/19 02:28, 2F
推
10/19 22:53, , 3F
10/19 22:53, 3F
→
10/25 19:22, , 4F
10/25 19:22, 4F
→
10/25 19:23, , 5F
10/25 19:23, 5F
Ruby 近期熱門文章
PTT數位生活區 即時熱門文章