lib/gumdrop/server.rb in gumdrop-0.3.6 vs lib/gumdrop/server.rb in gumdrop-0.3.7
- old
+ new
@@ -44,10 +44,11 @@
content_type :js if content.ext == '.js' # Meh?
content_type :xml if content.ext == '.xml' # Meh?
content.render
else
Gumdrop.log.info "[#{$$}] *Static: #{file_path}"
- send_file "source/#{file_path}"
+ source_base_path= File.expand_path(Gumdrop.config.source_dir)
+ send_file File.join( source_base_path, file_path)
end
else
Gumdrop.log.error "[#{$$}] *Missing: #{file_path}"
puts "NOT FOUND: #{file_path}"
"#{file_path} Not Found"