Commanding Chaos for Coworking, Open Source and Creative Communities

Error message

  • Deprecated function: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in drupal_session_initialize() (line 245 of includes/session.inc).
  • Deprecated function: Creation of dynamic property alpha_theme_container::$delta is deprecated in alpha_theme_container->__construct() (line 25 of sites/all/themes/contrib/omega/alpha/includes/base.inc).

Using Robo to script environment sync | Dustin LeBlanc

Mon, 01/25/2016 - 11:30 -- rprice

Robo: a robust commandline task runner for PHP. I really wanted something native to PHP to handle basic tasks and scripting and Robo fits the bill perfectly for me. Robo is written by the guy who maintains Codeception and I have really enjoyed it for several months now. I also pull in the robo-drush package for drupal sites because it makes things a bit simpler. Below is a generalized version of the scripts I use to sync my local site with remote servers. This script is admittedly far bigger than the short little bash script above, but it is also a lot more flexible; and it is just PHP. Take a look at the Robo docs for more ideas, I hope you find it useful!