【发布时间】:2011-08-05 08:01:10
【问题描述】:
我收到以下错误:
[app (master)]$ heroku rake db:migrate
rake 中止!
Heroku::Rails:Module /app/Rakefile:7 的未定义方法 `root'
(通过使用 --trace 运行任务查看完整跟踪)(在 /app 中)
我不知道如何按照错误 (heroku rake db:migrate --trace
给出“无效选项 --trace”),我不认为这与众所周知的“heroku 不使用 sqlite3”问题有关。
我的 Rakefile 如下:
require File.expand_path('../config/application', __FILE__)
require 'rake'
SampleApp::Application.load_tasks
【问题讨论】:
标签: ruby-on-rails heroku rake rakefile