Skip to content

Instantly share code, notes, and snippets.

@tricknotes
Created July 27, 2011 15:26
Show Gist options
  • Select an option

  • Save tricknotes/1109610 to your computer and use it in GitHub Desktop.

Select an option

Save tricknotes/1109610 to your computer and use it in GitHub Desktop.
カレントディレクトリを公開するだけの config.ru
use Rack::Static, :urls => {"/" => "index.html"}
run Rack::Directory.new(File.dirname(__FILE__))
source :rubygems
gem "rack", "~> 1.3"
@tricknotes
Copy link
Copy Markdown
Author

config.ru の書き方の備忘録

Heroku へデプロイする際には Gemfile も一緒に push する必要がある。

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