作者alohaiscool (aloha)
看板Ruby
标题[问题] Deploy on Heroku , but failed~
时间Mon Oct 17 20:22:57 2011
环境:
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
1F:推 godfat:如果你确定你没有步骤做错的话,那可能是 heroku bug? 10/17 22:48
2F:→ logooo77:请用 1.9.2 版本 10/19 02:28
3F:推 yzugsr:检查一下你有用git branch吗? 10/19 22:53
4F:→ alohaiscool:我想应该是git那边出了问题... 10/25 19:22
5F:→ alohaiscool:我重新开过资料夹clone之前的code回来,结果成功... 10/25 19:23