Question

I'd like to have a simple API running on a webserver (Windows Server 2008). I've chosen Sinatra with its default Webrick backend.

What I'm not sure how to do is make my sinatra app visible to the outside world? I have remote desktop access to my server, I have the Sinatra app running, but I'm sure it's not configured correctly for response to outside requests.

I'd love any pointers in getting this going.

Était-ce utile?

La solution

Figured this out.

Was pretty much as simple as ensuring sinatra was running with no ip (either run with -e production or use the -o 0.0.0.0 flag), and then most importantly, ensure the port the webrick server was running on was open on the windows server machine. Once the port was open, accessing it via ip:port works.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top