我目前正在做Michael Hartl的RoR教程,雖然我仔細地按照說明操作,但我的應用並未正確部署到heroku。幫幫我。RoR部署到heroku出錯了,耙db:遷移不會工作
我的Gemfile看起來像這樣
source 'https://rubygems.org'
ruby '1.9.3'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
#ruby-gemset=railstutorial_rails_4_0
gem 'rails', '4.0.0'
group :development, :test do
gem 'sqlite3', '1.3.7'
gem 'rspec-rails', '2.13.1'
end
group :test do
gem 'selenium-webdriver', '2.0.0'
gem 'capybara', '2.1.0'
end
gem 'sass-rails', '4.0.0'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.0'
gem 'jquery-rails', '2.2.1'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'
group :doc do
gem 'sdoc', '0.3.20', require: false
end
group :production do
gem 'pg', '0.15.1'
gem 'rails_12factor', '0.0.2'
end
而且我鍵入以下命令:
$ heroku create
$ git push heroku master
$ heroku run rake db:migrate
可是,我結束結果是這樣的:http://warm-wildwood-5691.herokuapp.com/ 「你要找的頁面因爲不存在「。
這些是我的英雄日誌
2013-07-19T19:21:15.363798 + 00:00 heroku [router]:at = info code = desc =「Blank app」method = GET path =/host = safe-ridge-7992.herokuapp.com fwd = 「190.72.80.97」dyno = connect = service = status = 502 bytes =
2013-07-19T19:21:16.733481 + 00:00 heroku [router]:at = info code = desc =「Blank app」method = GET path =/favicon.ico host = safe-ridge-7992.herokuapp.com fwd =「190.72.80.97」dyno = connect = service = status = 502 bytes =
2013-07-19T19:21:36 +00:00 heroku [slug-compiler]:Slug編譯開始
2013-07-19T19:24:23.872947 + 00:00 heroku [router]:at = info method = GET path =/favicon.ico host =安全 - 脊7992.herokuapp .com fwd =「190.72.80.97」dyno = web.1 connect = 2ms service = 7ms status = 200 bytes = 0
幫助?
日誌有什麼?這將是有益的。 – vee
嘗試'heroku open'。 'git remote -v'的輸出是什麼? – cortex