Step 12: Starting Up the Sinatra Application
Open a command prompt and cd to the directory where your script is. Then type "ruby thenameofyourrubyfile.rb" replacing thenameofyourrubyfile with the name of the file you created that has the ruby code in it. By default it will start up on port 4567. If you want to hit it on that port open a browser and type http://servername:4567 . If you don't want to do that, you can specify another port at startup. Web servers run on port 80 for HTTP, so you'd start it up like this "ruby thenameofyourrubyfile.rb -p 80". You should be able to see your app now. If you don't have DNS and can't resolve the name of the server, then you can replace servername in the URLs above with the IP of the server.