I personally set up two branches just in case we every have to make a hot fix. So we create two branches and two remotes (live and staging) and then say something like:
$ git push staging staging:master to push the staging branch to the staging remote or $ git push live master to push the master branch. Using this method also stops me from 'habit typing' origin or heroku master and pushing to the production site accidentally which is amazingly easy to do with heroku being so easy to deploy to. I know there are others who use rake tasks and scripts to help them handle deployment though. On 30 Dec 2010, at 17:48, Josh Coffman wrote: > As far as staging, I have a separate heroku app for that. I just "git push > test master" for staging or "git push live master" for live. works well for > me at least. > > > On Thu, Dec 30, 2010 at 9:57 AM, Wes Gamble <[email protected]> wrote: > To piggyback on this question - how do people handle staging vs. live? Do > you point at the same repo. but use different branches to deploy, or > something else? > > Wes > > On 12/30/10 7:35 AM, femto Zheng wrote: >> >> Yes, that's it, thanks for the info. >> >> >> On Thu, Dec 30, 2010 at 8:17 PM, Steve Smith <[email protected]> wrote: >> I'm not sure I quite understand your question but if you are saying for >> example you have two heroku sites setup but they share the same repository >> (like staging and live) then you can specify --app as part of the heroku >> command line tool. >> >> Such as: >> >> $ heroku info --app cloudmailin >> >> >> On 30 Dec 2010, at 11:45, femto Zheng wrote: >> >> > Hello, I'm running into a situation, >> > while my live site is up and running in heroku, >> > some part I need to ask others to modify. >> > >> > so say, >> > I have myapp point to [email protected]:myapp.git, >> > then I want to add a new app/repo to use as a collabor repo, >> > then say, >> > in my local myapp project, I git remote add >> > [email protected]:myapp-pre.git(which I created), >> > then I git push myapp-pre master, then use it as a collabor repository. >> > >> > The question is, then the several heroku commands, >> > like heroku console, heroku rake etc, how do they know to find >> > which repo/app to work with? That's an interesting question, >> > and I don't want to two environment mess up together. >> > >> > >> > -- >> > 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. >> >> -- >> 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. >> >> >> >> >> -- >> http://hi.baidu.com/femto >> http://bbs.aisiming.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. > > > -- > 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. > > > -- > 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. -- 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.
