人,我on Rails的教程下面的Ruby和对章中的demoApp工作2.我的ENV是:“的Heroku运行耙分贝:迁移”的问题
Win 7
Ruby 1.9.3
Rails 4.0.2
我已经部署了演示应用程序(目录下demo_app),并在本地进行了测试。我确实推送到Heroku使用
c:\rails_projects\demo_app heroku create --stack cedar
c:\rails_projects\demo_app git push heroku master
该应用程序被部署到heroku。
当我运行:heroku run rake db:migrate
我得到的错误:
No app specified. Run this command from an app folder or specify which app to use with --app APP.
我与heroku run rake db:migrate --app demo_app
运行它,但得到了同样的错误。 不知道该怎么做。
我能够迁移数据库。 C:\ rails_projects \ demo_app> heroku运行rake db:migrate --app sheltered-crag-4306 正在运行'rake db:migrate'连接到终端... up,run.5397 == CreateUsers:migrating .. ....... 当我尝试“heroku open --apple sheltered-crag-4306”时 我在浏览器中出现以下错误 “您正在查找的页面不存在,您可能错误键入了地址或页面可能已移动,如果您是应用程序所有者,请查看日志以获取更多信息。“ 对不起我的人,如果我在做一些愚蠢的事情。 请帮忙。 – user3221045
顺便说一句,我也试过“http://sheltered-crag-4306.herokuapp.com”,我得到了相同的结果 – user3221045