toto icon indicating copy to clipboard operation
toto copied to clipboard

Not heroku installation problems

Open jartur opened this issue 15 years ago • 5 comments

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 avatar Feb 07 '10 10:02 jartur

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

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

jartur avatar Feb 07 '10 10:02 jartur

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 avatar Feb 07 '10 19:02 cloudhead

The other thing which comes to mind is Gitosis.

cloudhead avatar Feb 08 '10 02:02 cloudhead

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

jartur avatar Feb 18 '10 06:02 jartur

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.

cloudhead avatar Feb 18 '10 14:02 cloudhead