开发者

heroku + revision control

开发者 https://www.devze.com 2023-03-21 22:40 出处:网络
I\'ve run into an interesting problem here in using heroku + git + SVN. Basically, the setup right now for my site is as follows:

I've run into an interesting problem here in using heroku + git + SVN.

Basically, the setup right now for my site is as follows: Our team --> SVN repo (free one from Assembla) ---> Heroku

As in, our team has changes which we commit to our SVN repo. When we feel confident in what we have, we push the latest in our repo to Heroku.

There are a bunch of issues here. Namely, as of right now, I'm only able to push to Heroku from the machine where I 开发者_JS百科first setup our Heroku app. The SVN repo has all our Heroku/GIT files in there ... but I've tried checking it out separately (on the same machine from where we push) and then pushing from there, but I get a git error that the HEAD is bad (fatal: bad object HEAD). Not sure what that means or how to fix it.

The main reason I want to do all this is because I want to make sure that we can have some sort of setup where we have full working versions of our app to fall back to if things go awry. For example, I wanted to have a pushes directory where we could copy stuff from trunk in SVN to a pushes/ directory and then push to heroku from there. That way, if the latest version was messed up, we could quickly push from pushes/. Of course, as I mentioned, this is not an option right now because I can only push from 1 specific directory on one specific machine.

Any ideas on what is the best way to manage this setup? Is my idea for having full working versions unnecessary? I don't mind redoing stuff entirely, or switching from SVN to git even (thought I would prefer not to, I wouldn't mind if that would simplify things), etc. How do others collaborate & do revision control with Heroku?

Thanks so much for your help!


I know heroku ignores pushes on branches other than master but does it still store them?

If so, you could do your work on a development branch and merge that to master when you want to deploy that would be an option.

Alternatively why not just use an assembla or github git repository or unfuddle for a free repo?

0

精彩评论

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

关注公众号