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
@anonyo
Copy link

anonyo commented Apr 13, 2014

Thank you so much ! works perfectly

@doug7410
Copy link

doug7410 commented Jun 7, 2014

Thanks!

@tomohung
Copy link

tomohung commented Jan 9, 2015

It works!! Thank you!

@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