I’ve got a local branch (master), a GitHub repo (origin), and another remote repo (server). I’ve set up my remote so locally I can type git push server master and push the changes to server/master.
When I type git log -1 locally and on the server they return the same commit, but none of the changes I made locally are visible on the server.
I deployed my app with Capistrano so redeploying it makes the changes visible immediately, but I don’t want to have to redeploy every time I make a change.
Any idea what’s going on here? I’m rather new to Git. Hopefully it’s something easy to fix.
It sounds to me that you maybe looking at a different directory than your web server is pointed to.
When I setup capistrano:
it creates a directory structure similar to:
None of these folder are tied to git. Which makes me think your webserver may not be pointed to the same directory that you’re using with git.
—
You may find cap deploy is preferable as you’ll be able to see the output if there are any issues.
I’m not a huge expert but the above is how I’ve setup rails with Capistrano.