diff options
| author | Teddy Wing | 2013-04-07 04:56:21 -0400 |
|---|---|---|
| committer | Teddy Wing | 2013-04-07 04:56:21 -0400 |
| commit | 01998983cdfde417abbea4812a5ab7e02ef4547e (patch) | |
| tree | 64af49941bbe7212ee39059d0e57533dcf6edbc0 | |
| parent | 5057c63d90819ba10ba18070c8ee219000ad3c97 (diff) | |
| download | clips-01998983cdfde417abbea4812a5ab7e02ef4547e.tar.bz2 | |
Add static file routing to config.ru
| -rw-r--r-- | config.ru | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -4,6 +4,13 @@ require './clip.rb' run Clip +# Static assets +use Rack::Reloader +use Rack::Static, + :urls => ['/assets'], + :root => File.expand_path(File.dirname(__FILE__)) + +# Database dbconfig = YAML.load(File.read('config/database.yml')) environment = ENV['DATABASE_URL'] ? 'production' : 'development' Camping::Models::Base.establish_connection dbconfig[environment] |
