Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not heroku installation problems #19

Open
jartur opened this issue Feb 7, 2010 · 5 comments
Open

Not heroku installation problems #19

jartur opened this issue Feb 7, 2010 · 5 comments

Comments

@jartur
Copy link

jartur commented Feb 7, 2010

I think this might be pointed out that if you install on your own server and want to push there from your local machine you have to use a bare git repo on the server. But toto needs a working directory obviously. And you cannot push to a repo with a working directory. So if you use your own server you will have to make all your editing directly on the server or you'll have to #git reset --hard; git checkout -f on the server after any push.

I wonder how does heroko work around this issue? Maybe I can utilize their solution on my own server?

@jartur
Copy link
Author

jartur commented Feb 7, 2010

Okay. This hook helps: http://utsl.gen.nz/git/post-update

Maybe you should note this. It is not very obvious.

@cloudhead
Copy link
Owner

You're right, this can be very confusing.

The way I do it, which isn't ideal, but works, is to use a canonical repo, such as a github repo, then push my local changes to it, and pull my changes from the server. So something like:

local ---push---> github
server <---pull--- github

This works pretty good, but of course requires you to ssh into the server.

@cloudhead
Copy link
Owner

The other thing which comes to mind is Gitosis.

@jartur
Copy link
Author

jartur commented Feb 18, 2010

Can't toto use Grit to work with bare repos instead of working directory?

@cloudhead
Copy link
Owner

That's an interesting idea. I have very little experience with Grit, so I can't tell you for sure, but it's worth digging around.

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

No branches or pull requests

2 participants