pihao
2014-09-19T02:42:24Z

sinatra_app.rb

| #coding:utf-8
|
| require 'sinatra'
|
| # Set port for compatability with Nitrous.IO
| configure :development do
| set :bind, '0.0.0.0'
| set :port, 4567 # Not really needed, but works well with the "Preview" menu option
| end
|
| get '/' do
| "Hello world!"
| end