0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

heokuデプロイ→コード変更後更新されない

Posted at

#現象
rails tutorial3章
1.sample_app作成後
config/routes.rbの内容を下記に変更(rootを'application#hello'から'static_pages#home'に変更)

root 'static_pages#home'
get 'static_pages/home'
get 'static_pages/help'
get 'static_pages/about'
end>

2.git commit → git push heroku master後
ページを再度開いたが、開いたページがroot 'application#hello'のまま

#原因
heroku masterにpushできていなかった
→作業ブランチがローカルのstatic-pagesのままgit push heroku masterを実行していた

#解決方法
現在の作業ブランチから Heroku の master ブランチへpushする。
git push heroku static-pages:master

#参照
https://techacademy.jp/magazine/6401#sec4

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?