Skip to content
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

Closed
wants to merge 7 commits into from
Closed

Issue #146: Add Runserver Command #147

wants to merge 7 commits into from

Conversation

alexfinnarn
Copy link

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.


$items['backdrop-runserver'] = array(
'description' => 'Runs PHP\'s built-in http server for development.',
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
Copy link
Author

@alexfinnarn alexfinnarn Aug 16, 2018

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?

Copy link
Member

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');
Copy link
Author

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)));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace Drupal?

Copy link
Member

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.

@serundeputy serundeputy closed this Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants