Build Wechat Official Account Development Enviroment With Rails
1. Start Nginx
Wechat Server transmits data with your server start in 80 port
configure nginx
server {
listen 80;
server_name git.com;
location / {
proxy_pass http://127.0.0.1:3000;
client_max_body_size 1000m;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
2. Start Rails Server
bundle install
setup Eric-Guo/wechat
rails s
3. Start Natapp
Natapp is NAT traversal tool for supporting public ip.
download Natapp client
usage Natapp client
-
Link Wechat Debug Account
-
Fill in these following configuare