lib/perus/server/server.rb in perus-0.1.2 vs lib/perus/server/server.rb in perus-0.1.3

- old
+ new

@@ -6,17 +6,19 @@ 'uploads_url' => 'http://localhost:3000/uploads/', 'db_path' => './perus.db', 'listen' => '0.0.0.0', 'port' => 3000, 'site_name' => 'Perus', - 'url_prefix' => '/' + 'url_prefix' => '/', + 'keep_hours' => 24 } } module Perus::Server class Server - def initialize(options_path = DEFAULT_SERVER_OPTIONS_PATH) + def initialize(options_path = DEFAULT_SERVER_OPTIONS_PATH, environment = 'development') self.class.options.load(options_path, DEFAULT_SERVER_OPTIONS) + ENV['RACK_ENV'] = environment DB.start end def run Thin::Server.start(