Skip to content

Instantly share code, notes, and snippets.

@tricknotes
Created July 27, 2011 15:26
Show Gist options
  • Save tricknotes/1109610 to your computer and use it in GitHub Desktop.
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
Author

config.ru の書き方の備忘録

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

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