介紹
- 在本機上開發的時候常常遇到需要https和domain name的狀況,例如:Line Bot的webhook測試,這時候使用ngrok就可以解決這個問題,ngork賦予你一個暫時domain name和https
安裝
Windows
choco install ngrok
Mac
brew install ngrok
在本機上登入ngork(使用token認證)
ngrok authtoken <token>
使用
ngrok http <Port>
choco install ngrok
brew install ngrok
ngrok authtoken <token>
ngrok http <Port>