連結:
https://github.com/indexzero/http-server

一行指令安裝:npm install http-server -g
安裝完畢後,執行指令http-server後面加上檔案夾路徑。
假設我想把c盤裡code\git這個檔案夾裡的靜态檔案通過檔案伺服器的方式暴露給外部,使用指令
http-server c:\code\git:
localhost:8080就可以通路了,美滋滋:
連結:
https://github.com/indexzero/http-server
一行指令安裝:npm install http-server -g
安裝完畢後,執行指令http-server後面加上檔案夾路徑。
假設我想把c盤裡code\git這個檔案夾裡的靜态檔案通過檔案伺服器的方式暴露給外部,使用指令
http-server c:\code\git:
localhost:8080就可以通路了,美滋滋: