add rubygems in case gems were not already available locally
In case the web server is behind a proxy, or a tunnel to local machine such as ngrok, the request ip params will always be 127.0.0.1