I’ve got a svn checkout locally which I make changes to, once I commit them I go in and update my dev copy on the server.
My question is, what’s the best way to get my files to my production site. I’m not much with linux commands, but I was thinking I could make a script that moves all files except .pyc and .svn files over to my production site? I don’t really know what the best way is and I would like to hear from some experts on how to do it the right way.
I generally run directly from an svn checkout. Log in to the production server, update to the revision or tag that’s been deemed worthy, restart the server and you’re good to go.
This has the advantage that it forces you to make sure that everything is kept under version control because the production site comes straight out of the repository. You could obviously automate the deployment using something like Fabric if you wanted to.