Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

REQ: Make it simple to transfer from one Heroku app to another (e.g. production to staging) #6

Closed
turadg opened this Issue Jan 17, 2013 · 4 comments

Comments

Projects
None yet
3 participants

turadg commented Jan 17, 2013

The current way I do this is:

$APP=myapp
heroku pgbackups:restore DATABASE `heroku pgbackups:url --app $APP` --app $APP-staging --confirm $APP-staging

It would be nice to have a simple command, e.g.,

heroku pg:transfer --from-app $APP --to-app $APP-staging

chap commented Jan 18, 2013

+1

chap commented Jan 18, 2013

@turadg just hacked something together that let's us do something, sorta like that: https://github.com/chap/heroku-pg-transfer

heroku pg:transfer --from gray::myapp --to maroon::myapp-staging --confirm myapp-staging

It requires that you know the postgres urls or colors for each app.

It's pretty ugly and will probably break with any heroku updates, but it's a start. I hope to have time to better use their api when I get a chance.

turadg commented Jan 18, 2013

Thanks for the start, Chap! Is there a way to query the app for its
database colors names? In case there's exactly one, that value could be
assumed.

On Fri, Jan 18, 2013 at 6:04 PM, Chap Ambrose notifications@github.comwrote:

@turadg https://github.com/turadg just hacked something together that
let's us do something, sorta like that:
https://github.com/chap/heroku-pg-transfer

heroku pg:transfer --from gray::myapp --to maroon::myapp-staging --confirm myapp-staging

It requires that you know the postgres urls or colors for each app.

It's pretty ugly and will probably break with any heroku updates, but it's
a start. I hope to have time to better use their api when I get a chance.


Reply to this email directly or view it on GitHubhttps://github.com/ddollar/heroku-pg-transfer/issues/6#issuecomment-12445037.

Owner

ddollar commented Nov 7, 2014

Hello. I apologize for the delayed response. I am currently declaring issue bankruptcy. If this issue still applies to you please feel free to re-open and explain. Thanks :)

@ddollar ddollar closed this Nov 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment