Skip to content

Instantly share code, notes, and snippets.

@deps
Last active August 6, 2016 07:58
Show Gist options
  • Save deps/6028795 to your computer and use it in GitHub Desktop.
Save deps/6028795 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
@Dorgam
Copy link

Dorgam commented Apr 1, 2015

Thanks , working fine!

@timfong888
Copy link

There a way to have Nitrous open to public internet for dev?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment