drush runserverfor drush 9x
Runs PHP's built-in http server for development.
drush runserver
-
Aliases
runserver has 2 alias/es:
drush rs
drush serve
-
Arguments
runserver accepts 1 argument/s:
uri : Host IP address and port number to bind to and path to open in web browser. Format is addr:port/path. Only opens a browser if a path is specified.
-
Options
runserver accepts 7 option/s:
--default-server
--default-server : default-server
--browser
--browser : browser
--dns
--dns : dns
--no-browser
--no-browser : no-browser
--notify
--notify : notify
--druplicon
--druplicon : druplicon
--xh-link
--xh-link : xh-link
-
Examples
Start a web server on 127.0.0.1, port 8080.
drush rs 8080
Start runserver on 10.0.0.28, port 80.
drush rs 10.0.0.28:80
Start runserver on IPv6 localhost ::1, port 80.
drush rs [::1]:80
Start runserver on localhost (using rDNS to determine binding IP), port 8888, and open /user in browser.
drush rs --dns localhost:8888/user
Start runserver on default IP/port (127.0.0.1, port 8888), and open / in browser.
drush rs /
Use a default (would be specified in your drushrc) that starts runserver on port 8080, and opens a browser to the front page. Set path to a single hyphen path in argument to prevent opening browser for this session.
drush rs --default-server=127.0.0.1:8080/ -
Start runserver on 127.0.0.1, port 9000, and open /admin in browser. Note that you need a colon when you specify port and path, but no IP.
drush rs :9000/admin
-
Comments
comments powered by Disqus