chi-teck / web-server
Web 服务器
1.0.0
2017-10-01 11:29 UTC
Requires
This package is auto-updated.
Last update: 2024-08-29 04:43:02 UTC
README
使用 PHP 内置 Web 服务器运行应用程序的控制台命令。
安装
Phar
release_url=https://api.github.com/repos/chi-teck/web-server/releases/latest
wget $(wget -qO- $release_url | awk -F'"' '/browser_download_url/ { print $4 }')
chmod +x web.server.phar
sudo mv web.server.phar /usr/local/bin/web.server
web.server --version
Composer
composer require chi-teck/web-server ./vendor/bin/web.server --version
可用命令
help Displays help for a command
list Lists commands
run Runs a local web server
start Starts a local web server in the background
status Outputs the status of the local web server for the given address
stop Stops the local web server that was started with the server:start command
致谢
此软件包建立在 Symfony Web 服务器扩展包 之上。