【发布时间】:2014-04-25 01:04:30
【问题描述】:
我刚刚开始使用 RoR 和 Heroku 托管。
我想知道如何运行从 Heroku 克隆的应用程序?
我想为字段添加一些迁移。我可以在不克隆的情况下在 Heroku 上正确执行此操作吗?
我在做什么:
1) heroku login
2) git clone git.....
3) cd cloned_app_folder
4) bundle install
5) rails g migration add_field_to_posts field:string
在这个阶段我有很多错误:like database.yml not exists and error in configuration.rb, /active_support/lazy_load_hooks.rb and other
6)I'm loaded db schema but it didn't help me
【问题讨论】:
-
为什么没有一个 git 存储库,用于将应用程序推送到 Heroku?
-
至于在本地运行 Heroku 应用程序,请查看 Foreman。它应该作为Heroku toolbelt 的一部分自动安装。
标签: ruby-on-rails ruby git heroku migration