开发者

How to copy my local db to heroku?

I'm working on a simple Rails (activeRecord based) application, and i'm testing in locally.

开发者_StackOverflow中文版

Now it's time to move online, but... do i need to insert all the records again in the app's db? I hope not!

Do you know a if is it possible to make a copy of my entire local db and import it in heroku?

Thanks!


erm, using the Heroku CLI

heroku db:push

job done, built into Heroku - will magically transpose your local DB whether it be sqlite, mysql, postgres to Heroku's shared postgresql db.


Try yaml_db gem

https://github.com/ludicast/yaml_db

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜