3 ms·
I use Fabric - http://pypi.python.org/pypi/Fabric/ http://pypi.python.org/pypi/Fabric/ - with a series of build scripts. I can create and update several differe
by wehriam 18y ago
I use Fabric - http://pypi.python.org/pypi/Fabric/ http://pypi.python.org/pypi/Fabric/ - with a series of build scripts. I can create and update several different types of EC2 servers (database, app, etc) with a single commands.
The update command does something like this:
* Check out all pertinent application files from the repository.
* Add any production specific files, for example build number or database setups
* Combine, compress, and number all Javascript and CSS files (combined.384.css can be cached forever, on update it becomes combined.385.css)
* Tar and gzip the production files
* Find all EC2 servers that need to be updated
* Upload the gzipped files
* Stop apache
* Remove old files on the server(s)
* Unzip the new files
* Start apache