Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Till Klampaeckel’s Blog: Deploying PHP applications: PEAR and composer resources for chef

Till Klampaeckel’s Blog: Deploying PHP applications: PEAR and composer resources for chef

In a new post to his site Till Klampaeckel shows how to use PEAR and composer resources (two popular PHP package management tools) from inside of a chef deployment script.

This is something experimental I have been working on for our chef deployments. So the objective was/is to find a sane way to install PEAR packages and install dependencies with composer.

He shows how to set up the configuration script to discover a new PEAR channel, make the chef script not “fail hard” if a command returns a failed response code (as PEAR will do if the channel is already discovered). The “ignore_failure” configuration directive comes in handy for this. He also shows how to implement a LWRP in chef for both a PEAR and Composer resource.

You can find the code for this and other cookbook examples on his github account.

Source: http://www.phpdeveloper.org/news/17592

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Posted Luty 28th, 2012 in WEB and PHP Development.

Leave a response: