Skip to content

Instantly share code, notes, and snippets.

@stoplion
Forked from deps/gist:6028795
Created December 8, 2015 06:38
Show Gist options
  • Save stoplion/a9d83bfddfa0eabeb2d9 to your computer and use it in GitHub Desktop.
Save stoplion/a9d83bfddfa0eabeb2d9 to your computer and use it in GitHub Desktop.
A reminder to myself and anyone wanting to use Sinatra on Nitrous.IO
require 'sinatra'
# Set port for compatability with Nitrous.IO
configure :development do
set :bind, '0.0.0.0'
set :port, 3000 # Not really needed, but works well with the "Preview" menu option
end
get '/' do
"Sinatra on Nitrous.IO"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment