-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #146: Add Runserver Command #147
Conversation
|
||
$items['backdrop-runserver'] = array( | ||
'description' => 'Runs PHP\'s built-in http server for development.', | ||
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably need to change Drupal to Backdrop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes.
$extra = ' "' . __DIR__ . '/d7-rs-router.php"'; | ||
|
||
// Start the server using 'php -S'. | ||
$root = drush_get_context('DRUSH_SELECTED_DRUPAL_ROOT'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same there; I don't know if "Drupal" needs to be changed but will try to look
// NOTE: The original runserver command had a way to log in a user and open a | ||
// browser. Those have been removed from the Backdrop version of this command. | ||
|
||
drush_print(dt('HTTP server listening on !addr, port !port (see http://!hostname:!port/!path), serving site !site!user...', array('!addr' => $addr, '!hostname' => $hostname, '!port' => $uri['port'], '!path' => $path, '!site' => drush_get_context('DRUSH_DRUPAL_SITE', 'default'), '!user' => $user_message))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace Drupal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably, but you'll need to test.
Fixes #146. I ended up changing the namespace of the command by prepending "backdrop" and I think I got the runserver -> backdrop-runserver part as well.