Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using Git for a test and production server and I'm trying to figure out the best way to update the production server.

I have limited SSH access, and don't want to manually update my production server using FTP.

I essentially would like to just be able to run a simple command and have the whole production server files match my dev.

It is also important to note that users will be uploading images, and other files to our production server only, that we can not lose.

Thanks,any help is appreciated

share|improve this question

1 Answer 1

You may want to look into a deployment tool like Capistrano or Fabric. You can set up rules to exclude (or synchronize) certain directories. Alternatively, you could just use plain git.

share|improve this answer
    
+1 for posting a link with the line, "useful as a chocolate teapot." I do a similar thing with Subversion, and it really simplifies things. You can even still have files that are only in the production directory. As long as they aren't under version control in dev, you shouldn't have a problem. –  Paul Kroon Jun 10 '10 at 16:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.