O'Reilly logo

Mastering PHP 7 by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Deployer

There are several key concepts that comprise of the Deployer applications:

  • Configuration: Using the set() and get() functions, we set and fetch one or more configurations options:
set('color', 'Yellow');set('hello', function () {  return run(...)->toString();});
  • Tasks: These are units of work defined via the task() function, used together with the desc() method that sets the task description. Within the task, there is usually one or more functions, such as run():
desc('Foggyline task #1');task('update', 'apt-get update');desc('Foggyline task #2');task('task_2', function () {  run(...);});
  • Servers: This is the list of servers defined via the server() function, as shown in the following code snippet:
 server('mphp7_staging', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required