We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
时间:2017-02-17 12:10:06
在做微信公众号开发的时候, 需要指定一个外网的地址,但是本地开发调试的时候, 如果每次把代码上传到 外网,在测试,这样很麻烦,并且很难调试。 那么是否有啥方案可以解决呢?
内网端口映射到外网访问,然后在微信公众号的外网地址,设置成 Ngrok 生成的地址。
这样本地就可以调试,大大加速了开发的效率和进度。
# 把18080 端口映射到外网 ngrok http 18080
生成的万网地址可能访问速度慢了点,但是是可以映射出来的。 在刚开始使用的时候, 除了80端口映射出去了,其他端口映射出去都访问不了, 后面莫名其妙就可以了。 可能是访问太慢的问题。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
时间:2017-02-17 12:10:06
1. 解决方案
内网端口映射到外网访问,然后在微信公众号的外网地址,设置成 Ngrok 生成的地址。
这样本地就可以调试,大大加速了开发的效率和进度。
2. Ngrok 的使用
# 把18080 端口映射到外网 ngrok http 18080
The text was updated successfully, but these errors were encountered: