Skip to content

Commit

Permalink
Handle spaces in /path/to/php for runserver command under Drupal 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Mar 17, 2016
1 parent 659f677 commit 7eabf75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commands/runserver/runserver.drush.inc
Expand Up @@ -131,14 +131,13 @@ function drush_core_runserver($uri = NULL) {
drush_start_browser($browse, 2);
}
// Start the server using 'php -S'.
$php = drush_get_option('php', 'php');
if (drush_drupal_major_version() >=8) {
$extra = ' "' . __DIR__ . '/d8-rs-router.php"';
}
else {
$extra = ' --define auto_prepend_file="' . __DIR__ . '/runserver-prepend.php"';
}
drush_shell_exec_interactive($php . ' -S ' . $addr . ':' . $uri['port'] . $extra);
drush_shell_exec_interactive('%s -S ' . $addr . ':' . $uri['port'] . $extra, drush_get_option('php', 'php'));
}

/**
Expand Down

0 comments on commit 7eabf75

Please sign in to comment.