As would be expected, we do deploy dogfood and our demo site using git. So I can tell you a bit about what I learned in setting that up.
What you actually need to do is run a git pull on the remote server. Pushes don't quite work for deployments because even though the commit information gets into the remote git repository, it doesn't update the filesystem like you think it would. (Try it and then run a "git status" on the remote). But what git is doing does make sense since if you pushed changes to someone else's repository on a branch they're currently editing, this could introduce unexpected updates. Here's what you need to do: [All the commands should be run on the remote server] 1. Initialize your Git repository on the remote server git clone [repository URL] 2. Configure Insoshi (database.yml, etc.) and run rake install 2. To get updates from your repository git pull Basically it's like what you're doing with your local repository when you're getting updates from the official repository. Long On Mon, Jun 9, 2008 at 5:22 PM, Antony Evans <[EMAIL PROTECTED]> wrote: > > Hiya, > > Have spent the last couple of hours figuring out how to make git > work. Think I've now created a fork on github and am able to download > updates from the master insoshi code. Having got this far I'd like to > use git for deployment as well, which seems like the obvious thing to > do. However I've run into a few issues and so am wondering if anyone > can point me in the right direction. > > So far I have done the following: > 1. Created a folder on my remote server which I want to contain the > repository. > 2. Typed git init to create the repository (git --bare init produced > an error) > 3. Navigated in gitbash to my local repository > 4. Set up the remote connection: > git remote add deploy ssh://[EMAIL PROTECTED] > /home/username/git/insoshi.git > 5. Try to create the fork: > git push deploy master:refs/heads/master > > After being prompted for my password, which I enter, I get the error: > "Unable to chdir or not a git archive. > Fatal: the remote end hungup unexpectedly" > > Any thoughts on what I'm doing wrong? > > Thanks, > Antony > > > -- Long Nguyen [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ Insoshi developer site: http://dogfood.insoshi.com/ Insoshi documentation: http://docs.insoshi.com/ You received this message because you are subscribed to the Google Groups "Insoshi" 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/insoshi?hl=en -~----------~----~----~----~------~----~------~--~---
