将 Engine Yard DB 拉入 Heroku
我想将我的应用程序从 Engine Yard 转移到 Heroku。问题是我不知道如何将我的数据库从一个数据库转移到另一个数据库。我知道您可以使用命令行来执行此操作,但我不知道如何操作。我希望其他人也有这个,并且愿意帮助我。
I want to transfer my application over from Engine Yard to Heroku. The problem is that I don't know how to get my database from one to the other. I know that you can probably do this with the command line but I don't know how. I'm hoping that someone else has one this and would be willing to help me out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将数据库从 EY 转移到您计算机上运行的数据库 - 您在 EY 上使用什么数据库?也许是MySQL?完成此操作应该很容易 - 一旦您在本地拥有它并配置本地应用程序以使用该数据库作为开发数据源,只需使用
heroku db:push
将其放入 Heroku 即可- 它会为你转换它,所以你在本地运行它的数据库并不完全重要。希望这足以让您开始。
You'll need to get your database from EY to a DB running on your machine - what DB are you using on EY? MySQL perhaps? It should be easy enough to get this done - once you have it locally and have configured your local app to use that database as it's development datasource it's a simple case of
heroku db:push
to put it onto Heroku - and it will convert it on the way up for you so it doesn't entirely matter what DB you run it in locally.Hopefully that's enough to get you started.