[support] Keeping dev and live site in sync

Gordon Heydon gordon at heydon.com.au
Thu Jan 26 21:47:33 UTC 2012


Hi,

The easiest method to keep your local dev site up to date is to use drush http://drupal.org/project/drush

This is a command line tool, and if you set up your alias files you can sync you to dev to live in a couple of commands.

drush sql-drop
drush sql-sync @site.live @site.local
drush rsync @site.live:%files @site.local:%files

I do this will all my sites and makes my development so much easier.

Gordon.


On 26/01/2012, at 8:12 AM, prothero wrote:

> Folks:
> Hi. I am pondering the best way to modify and test my site without corrupting my live site. Currently, I ftp all of the files and db tables to my local computer and use MAMP to run my development site. But, since my live site is changing every day from users creating accounts, etc, how should I set this up so that when I upload my development site to the live one, it stays current?
> 
> I'm sure this problem has been solved, but ....
> Regards,
> Bill
> William A. Prothero
> http://earthednet.org/
> 
> 
> 
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120127/e7c3c4db/attachment.html 


More information about the support mailing list