为 php artisan.php serve 设置端口 - Set port for php artisan.php serve

问题:

How do we set a custom port for test server?我们如何为测试服务器设置自定义端口?

Normally when we do通常当我们做

php artisan serve

the folder gets served as :该文件夹被用作:

localhost:8000

How do could we access one folder as:我们如何访问一个文件夹:

localhost:8080

I want to access two different development sites on my localhost.我想在我的本地主机上访问两个不同的开发站点。


解决方案:

参考一: https://en.stackoom.com/question/1DUEW
参考二: https://stackoom.com/question/1DUEW
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章