config.ru in stoor-0.1.11 vs config.ru in stoor-0.1.12
- old
+ new
@@ -8,20 +8,19 @@
require 'stoor'
require 'rack/null_logger'
ENV['RACK_ENV'] ||= 'development'
-config = Stoor::Config.new(__FILE__)
+config = Stoor::Config.new(__FILE__, ENV['STOOR_RUNNING_VIA_CMD'])
domain = config.env('DOMAIN') || 'localhost'
secret = config.env('SECRET') || 'stoor'
expire_after = (config.env('EXPIRE_AFTER') || '3600').to_i
+gollum_path = config.env('WIKI_PATH') || config.dirname
-gollum_path = config.env('WIKI_PATH') || File.expand_path(File.dirname(__FILE__))
-
config.dump_env
-config.log "gollum_path = #{gollum_path}"
+config.log "gollum_path: #{gollum_path}"
if message = config.repo_missing?(gollum_path)
puts message
run Proc.new { |env| [ 200, { 'Content-Type' => 'text/plain' }, [ message ] ] }
else