1
1

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 5 years have passed since last update.

railsアプリをherokuで公開して動かない時にはgit push master originのみでなくdb:migrateが必要

Last updated at Posted at 2018-04-15

ruby on railsのチュートリアルをやっていて、
herokuにコードのpushは出来ているっぽいのに
アクセスしても反映されないとき。

下記コードによってDBの作成が必要だった。
railsのアプリを作ったフォルダに行って以下のコードを実行。

terminal
heroku run rake db:migrate
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?