News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorna Mitchell's Blog:
One-Step Symlink Switch
August 20, 2010 @ 10:03:39

Lorna Mitchell has a handy tip you can use in deploying your (linux-based) PHP applications - a one-step symlink switch that can make toggling between deployed versions of your code simple.

When I deploy an application, which is almost invariably a PHP application, I like to put a whole new version of the code alongside the existing one that is in use, and when everything is in place, simply switch between the two. As an added bonus, if the sky falls in when the new version goes live, the previous version is uploaded and ready to be put back into service.

The single command avoids having to remove a current symlink and recreate it, possibly causing issues if something happens in between. Instead she uses the "mv" (move) command to push the current symlink over to a new location. Reducing the process to one step also minimizes the risks of deployment.

0 comments voice your opinion now!
symlink switch deployment application


blog comments powered by Disqus

Similar Posts

Job Posting: 9 Track Mind Seeks an Application Developer (Toronto, Canada)

Raphael Stolt's Blog: Validating XML files within PHP 4 applications

PseudoCoder.com: How To Really Use Xdebug To Speed Up Your App

SitePoint PHP Blog: Faster PHP Apps - Profile Your Code with Xdebug

Zend Developer Zone: Zend Framework Applications Questionnaire


Community Events





Don't see your event here?
Let us know!


interview voicesoftheelephpant opinion composer version symfony community library package introduction laravel framework tool language series release security podcast install application

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework