爲 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章