Heroku rake db:migrate不起作用

时间:2011-11-23 18:15:19

标签: ruby-on-rails-3 heroku

Ruby 1.9.2 Rails 3.1

在与heroku问题战斗的那一天之后,我终于得到了命令'git push heroku master正常工作'。

Gemfile有适当的enties并且安装了pg gem

group :production do
  gem 'pg'
end
group :development, :test do
  gem 'sqlite3'
end

此时已上传应用程序并可在此处查看开始页面http://growing-day-7939.heroku.com/

下一步应该是使用'heroku rake db:migrate'将数据库迁移到heroku 它总是失败。

c:\RailsInstaller\work\rfclub>heroku rake db:migrate
No app specified.
Run this command from an app folder or specify which app to use with --app <app name>

其他heroku命令失败,出现与上面相同的错误 - heroku ps,heroku logs,heroku config。

我尝试删除并重新创建应用,甚至尝试创建新的heroku帐户并重复这些步骤,但似乎没有任何帮助。 任何想法都会受到赞赏,我真的被卡住了。

1 个答案:

答案 0 :(得分:4)

我认为您需要通过heroku create --stack cedarHeroku's Cedar stack上部署Rails 3.1应用。迁移命令为heroku run rake db:migrate

相关问题