Heroku运行后没有更新Heroku:rake db:migrate

时间:2016-03-20 22:21:03

标签: ruby-on-rails heroku migration

我在Rails中开发了一个简单的博客。当我在localhost:3000中创建帖子,然后运行

rake db:migrate
git add .
git commit -m "add blog entry"
git push heroku master
heroku run rake db:migrate --trace

我在命令shell中得到以下输出:

Running rake db:migrate --trace on david-dominique2... up, run.2266

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
  ActiveRecord::SchemaMigration Load (0.9ms)  SELECT "schema_migrations".* FROM "schema_migrations"

** Invoke db:_dump (first_time)
** Execute db:_dump

然后,当我检查mywebsite网址时,博客不会更新。我无法弄清楚我做错了什么?

0 个答案:

没有答案