App Fog Rails迁移数据库 [英] App Fog Rails Migrate Database
本文介绍了App Fog Rails迁移数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该如何在 App Fog中迁移 Rails 应用程序数据库?
How am I supposed to migrate Rails application database in App Fog?
例如,在第一次部署后的Heroku上,您必须运行:
For example, on Heroku after the first deployment you have to run:
$ heroku run rake db:migrate
是否存在类似的命令,或者数据库已自动在App Fog上部署?
Is there a similar command or the database is deployed automatically on App Fog?
P.S.我没有找到有关此文件的文档.是否像Heroku一样通过生成database.yml
文件来自动配置数据库?
P.S. I didn't found documentation for this. Does it configure the database automatically by generating the database.yml
file like on Heroku?
推荐答案
实际上在基本上,您可以使用af tunnel
创建 Caldecott隧道,然后在本地运行迁移.
Basically, you create a Caldecott tunnel with af tunnel
, then run the migration locally.
这篇关于App Fog Rails迁移数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文