|
Posted by javelin on March 24, 2008, 11:52 am
Please log in for more thread options
Does anyone have any suggestions for synchronizing multiple websites?
We have a dev server, a testing server, and a live server. Now, we
have 3 developers, and we are having trouble tracking which files on
which server are the latest. I know it should be obvious, but this is
a bit complicated, as many of you may have experienced.
Any suggestions for software and/or methods/techniques for file
management?
Thanks in advance.
J
|
|
Posted by Andy Dingley on March 24, 2008, 4:08 pm
Please log in for more thread options
> Does anyone have any suggestions for synchronizing multiple websites?
rsync Good version control on your dev server too. I'd suggest
Subversion as the current best choice.
Also stop trying to "synchronise" content. Just worry about
propagating in one direction, and in being able to reliably make stuff
propagate. That way it doesn't matter if you over-write content
unnecessarily, it would just be the same content anyway.
If you use Subversion, "tagging" is important to keep track of stuff
too. Don't propagate straight from the dev server, make it a rule to
always tag a build first, then propagate from that tag.
Don't let habits develop like "just tweaking it a bit" on the live
server, then back-propagating. That way lies madness.
Don't edit files during propagation, even if you do this
automatically . If you _must_ have something different (.properties
file for DB connections etc.) then treat each one as separate files
for each server. Try and limit these too.
|
|
Posted by Steve Swift on March 25, 2008, 2:33 am
Please log in for more thread options javelin wrote:
> We have a dev server, a testing server, and a live server. Now, we
> have 3 developers, and we are having trouble tracking which files on
> which server are the latest. I know it should be obvious, but this is
> a bit complicated, as many of you may have experienced.
I'm sure there are software packages to handle this scenario, but for me
it was easier to develop my own mechanism, which runs as a CGI
application on my webserver itself. I have just test and production, but
six developers.
One webpage allows each developer to download files from the test system
(acquiring a lock on the file in the process) and a separate page shows
you which files are newer on the test system.
Each time a file is uploaded to the test system an automatic backup of
the old file is taken. This also happens when a file is promoted from
the test to the production system.
It's simple, but sufficient for our needs. The only slightly unusual
aspect of our system is that any of the developers can remove a lock
held by someone else; this means that we don't need an administrator.
--
Steve Swift
http://www.swiftys.org.uk/swifty.html http://www.ringers.org.uk
|
|
Posted by Andy Dingley on March 25, 2008, 9:55 am
Please log in for more thread options
> Each time a file is uploaded to the test system an automatic backup of
> the old file is taken.
Don't use backups, use a real VCS and deltas.
> The only slightly unusual
> aspect of our system is that any of the developers can remove a lock
> held by someone else; this means that we don't need an administrator.
Locks are just plain dumb wrong anyway. Use a CMM approach (Checkout,
Modify Merge) rather than Lock-In, Lock-Out. If you have more than one
developer, it's a vast saving.
|
| Similar Threads | Posted | | [OT] Need graphics suggestions | April 18, 2006, 11:27 am |
| Images containing text - suggestions? | November 27, 2004, 11:57 pm |
| Web Design Magazine Suggestions | March 2, 2006, 5:08 pm |
| Re: Web Design Magazine Suggestions | March 2, 2006, 8:14 pm |
| Suggestions > Web developers conferences | October 3, 2006, 7:21 pm |
| Hosting for Reselling - Suggestions | October 9, 2006, 4:12 pm |
| Input text whit out suggestions | September 6, 2007, 9:10 pm |
| I'm looking for suggestions on Stacked Tabs Menu | November 12, 2007, 4:46 pm |
| Compilling an XHTML friendly directory - your suggestions please | June 8, 2005, 10:36 am |
| worse websites... | August 16, 2005, 1:30 am |
|