Skip to content

Instantly share code, notes, and snippets.

@cornernote
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cornernote/6aca031fe8eca8eac7df to your computer and use it in GitHub Desktop.
Save cornernote/6aca031fe8eca8eac7df to your computer and use it in GitHub Desktop.
my first robofile
<?php
/**
* This is project's console commands configuration for Robo task runner.
*
* @see http://robo.li/
*/
class RoboFile extends \Robo\Tasks
{
/**
* Run a test php web server
*
* @param array $opts
*/
public function server($opts = ['host' => '0.0.0.0', 'port' => '8888', 'path' => 'web'])
{
$this->_exec('php -S ' . $opts['host'] . ':' . $opts['port'] . ' -t ' . $opts['path']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment