【问题标题】:Migrate returns (in /app)迁移返回(在 /app 中)
【发布时间】:2011-06-11 15:03:12
【问题描述】:

我已将我的应用程序推送到 Heroku,但是我的数据库 (Sqlite3) 无法迁移。我知道 heroku 会自动迁移为 PG。 [我没有安装 PG]。

我想如果有问题,我会收到错误提示。

这是我的结果:

pc-name$ heroku rake db:migrate --trace
(in /app)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment 
** Execute db:schema:dump

当我尝试创建时-

pc-name$ heroku rake db:create --trace
cwogwtvrpc already exists
    (in /app)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create

【问题讨论】:

  • 有什么问题?尝试 heroku 重启
  • 嘿米哈伊尔,问题是,数据库没有迁移。我尝试 heroku restart 无济于事。
  • 我销毁了应用程序,然后重新创建了它。成功了

标签: ruby-on-rails heroku rake dbmigrate


【解决方案1】:

尝试销毁应用并重新创建它:)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-12
    • 2016-12-25
    • 2021-09-06
    • 2016-05-24
    • 2020-01-12
    • 1970-01-01
    • 2020-09-14
    • 2012-12-27
    相关资源
    最近更新 更多