Dependency
bundle install
Usage
god terminate
god -c proxy.god -D
Proxy
curl -i -x ip:8008http://api.douban.com/v2/movie/subject/24847343
curl -x ip:8008http://api.douban.com/v2/movie/subject/24847343| python -m json.tool
Deploy
Single server
cp config/deploy.example.rb config/deploy.rb
cp config/setting.example.yml config/setting.yml
# And then edit it
mina setup
mina deploy
Multi servers
cp config/deploy.example.rb config/deploy.rb
cp config/setting.example.yml config/setting.yml
# And then edit it
mina setup_all
mina deploy_all
Health check
ruby health_check.rb
Linux port
ps -aux | grep god
netstat -apn | grep 8008
from https://github.com/FlowerWrong/proxy-server-ruby