JNiven
Hi Luis
If it were me, I'd have a commit force an update on the staging website, but NOT on the live website. I'd want a manual step between deploying to staging and deploying to live - something like "OK, staging is at revision 1234, and looks great. I'm satisfied that it's safe to deploy to the live server, so I'll manually do an export (using revision 1234) from Subversion to the live server". I wouldn't want every single commit to hit the live server, as I'm bound to make a commit in error, sooner or later... ;-)
Cheers
John
kimipt
Thanks John,
Yep, that really sounds like the reasonable thing to do. My problem with the export is that in every sync to the live server it will be sending everything right? I mean, if i go to the live server trough FTP since the exported file are all new everything will be sent.
I was looking into Fabric or Webistrano for deployment. My goal was local updates automatic as you say, but remote updates (live server) only by specific instruction. Couldn't get around Fabric so far, as for Webistrano i havent had the time to test it.
I was hoping someone here with experience in this workflow could point out some directions.
Thanks
Luis Martins
JNiven
Hi Luis
It's been a while since I last did website deploys, but yes, you're right that export will export everything. Typically I'd export the live site to a new directory, then update a symbolic link ("/var/www") to pint to the exported site - that minimises downtime for the site.
I looked at Webistrano a while ago; I can't recall if it would automate this step, but it did seem fairly feature-rich - might be worth taking a closer look.
Cheers
John
JNiven
Hi
That's right: the export approach will result in all files being FTPd. You need to balance the security this gives you against the bandwidth/time costs - and the resultant costs incurred if you were to take the other approach and miss out a few files. My view is that bandwidth is cheap; my time isn't!
Cheers
John