1、下載釘釘程序文件
clone git倉庫執行命令:git clone https://github.com/open-dingtalk/pierced.git
2、進入到相應的電腦系統路徑 蘋果的進入mac windows的進入 windows64
使用cmd 進入路徑 輸入命令即可
Mac:
1 cd mac_64
2 ./ding -config=./ding.cfg -subdomain=daheng 8080 生成地址(http://daheng.vaiwan.com)對應(127.0.0.1:8080)
Windows
1 cd windows_64
2 ding -config=ding.cfg -subdomain=daheng 8080 生成地址(http://daheng.vaiwan.com)對應(127.0.0.1:8080)
附上VUE內網穿透時修改
問題:使用花生殼內網穿透只返回304,invalid host header
原因:新版的webpack-dev-server出於安全考慮,默認檢查hostname,如果hostname不是配置內的,將中斷訪問。
解決:找到配置文件添加配置 disableHostCheck: true,
例如我的在vue.config文件
記得重啟服務