How can we quickly deploy to multiple LAMP environments?
April 13, 2009 8:57 AM   Subscribe

Are there any tools to help with deploying LAMP sites to multiple environments?

We have 3 Ubuntu Server environments (development, preview, and production) that need to have file and database updates pushed through multiple times a day.

We're manually using MySQL Administrator for database restores and Beyond Compare 3 for file updates but there has to be a more automated way.

The database and file systems between the environments end up nearly identical because the project is still in development and we have everything under source control.

Are there any good tools or CLI tricks that can handle quick backup and restore of the database and mirror of the file system?
posted by hitopshelf to Computers & Internet (5 answers total)
 
I have started to use Capistrano to deploy sites for a LAMP setup with a wordpress based site using Subversion for version control. From the CLI I just type "cap deploy" and away it goes.

Capistrano is mostly used by the RoR guys, but it has been working great for me with LAMP and subversion. I found out how to do it from a informative blog post.
posted by avex at 9:30 AM on April 13, 2009


for file system mirror, rsync is the usual choice. It can tunnel via ssh, so that works well in a remote environment, and it only copies changes. Alternately, tagged version releases through your version control system works.
posted by jenkinsEar at 9:37 AM on April 13, 2009


Seconding capistrano. It was designed to easily complete tasks across multiple servers from a command line.
posted by cdmwebs at 10:22 AM on April 13, 2009


fabric is pretty cool.
posted by Mach5 at 11:18 AM on April 13, 2009


Fabric, capistrano, puppet, xCAT, slack...
posted by nicwolff at 2:42 PM on April 13, 2009


« Older Mapmixer mashup MIA?   |   Best Budget Vegas Tips Newer »
This thread is closed to new comments.