Almost there with Git – deployment question
# April 26, 2013 at 10:26 am
I’m fully on board with using Git locally, but am getting cold feet with deployment.
I want to start using Git to push changes from my local MAMP/htdocs folder to a production server. I’m scared of screwing things up on the production server, and here’s why:
I have all the appropriate files committed to git locally and my .gitignore file is all set up. If I “git push production_server_name master”, will that upload everything I’ve committed to git locally and overwrite what’s on the server?# April 26, 2013 at 2:11 pm
I’ve tried to get that going but that’s a little trickier than I thought. From what I can tell, the server needs to pull what’s in the master branch (either at set intervals or whenever you send a command) and that’s the part that requires SSH server access and such…..which is where I pretty much gave up.# May 1, 2013 at 2:17 pm
You might check out this video, and the comments that follow:
[Your text to link here…](http://css-tricks.com/video-screencasts/109-getting-off-ftp-and-onto-git-deployment-with-beanstalk/ “http://css-tricks.com/video-screencasts/109-getting-off-ftp-and-onto-git-deployment-with-beanstalk/”)
It’s one of Chris’s videos. It’s pretty informative, and kind of hilarious because he’s just sort of winging it and in the end nothing is working – but he’s doing everything on the fly and points out what the issues are. The process is solid, and the technical problems just inject a bit of humor.
The only downside is that the deployment service isn’t free but, if that’s not an issue, then I think this might be what you’re looking for.
You must be logged in to reply to this topic.