Last active
August 29, 2015 14:21
-
-
Save cornernote/6aca031fe8eca8eac7df to your computer and use it in GitHub Desktop.
my first robofile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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