Hey, thanks for your replies.  I guess I was just a bit unsure of git-
push's behavior when it came to source and destination branches, since
I always used it to push to the remote branch of the same name.

Cheers,

T.J.

On Apr 28, 11:32 am, Dan Croak <[email protected]> wrote:
> There was a recent blog post about this, along the same lines as Mat's
> suggestion:http://jqr.github.com/2009/04/25/deploying-multiple-environments-on-h...
>
> On Tue, Apr 28, 2009 at 2:30 PM, Mat Schaffer <[email protected]>wrote:
>
>
>
>
>
> > On Apr 28, 2009, at 1:50 PM, teejayvanslyke wrote:
> > > Is anyone else using Heroku for two environments running different
> > > branches of the same repository on each?  What is your solution?
>
> > I'm not doing this, but from my knowledge of git it should be totally
> > doable. You'd have two heroku apps, for the sake of discussion call
> > them "myprodapp" and "mystagingapp".
>
> > You'd add both of these as remotes to your git repo:
> > git remote add prod [email protected]:myprodapp.git
> > git remote add staging [email protected]:mystagingapp.git
>
> > Then when you want to push to prod from master do:
> > git checkout master
> > git push prod master
>
> > When you want to push to staging do:
> > git checkout edge
> > git push staging master
>
> > Git push can also take a source branch so the checkout isn't even
> > necessary really. You should be able to do:
> > git push [email protected]:myprodapp.git master:master
> > git push [email protected]:mystagingapp.git edge:master
>
> > I could be a little off, but that's the basic idea. Check out 'git
> > push --help' for more details. Alsohttp://grb.rubyforge.orgis
> > helpful for dealing with remote branches.
>
> > -Mat
>
> --
> Dan Croakhttp://thoughtbot.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to