sinatra, inline __END__,shotgun,server,port,host,rackupを使うときの注意
http://thedersen.com/blog/2010/08/23/shotgun/
http://stackoverflow.com/questions/12559500/how-to-make-thin-run-on-a-different-port
http://stackoverflow.com/questions/15639998/sinatra-via-rackup-does-not-like-inline-templates
https://github.com/sinatra/sinatra/blob/master/README.ja.md
#app.rb
enable :inline_templates <-これが無いと インライン"__END__"以下を読んでくれない
get "/" do
...
#config.ru
#\ -p 8888
#\ -o 0.0.0.0
#\ -s thin
#\ -E development
require 'bundler'
Bundler.require
require File.expand_path '../my_app.rb', __FILE__
run Sinatra::Application
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
もしRackを使い、sinatra側をクラス化したいのなら
#app.rb
class MyApp < Sinatra::Base
enable :inline_templates <-これが無いと インライン"__END__"以下を読んでくれない
get "/" do
...
end
#config.ru
require 'bundler'
Bundler.require
require './app'
run SinatraExample.new