Jason Meridth's Blog Learn, Converse, Share

Get Sinatra and Shotgun gem working on Vagrant

TL;DR

shotgun -o 0.0.0.0 config.ru

You have to tell shotgun to use 0.0.0.0, the “all IP addresses on this box” IP address listen on. The default is 127.0.0.1, which is the loopback IP address on the vagrant instance.

Hope this helps someone.

Have feedback on this post? Let @jmeridth know on Twitter.