bin/castronaut in relevance-castronaut-0.5.4 vs bin/castronaut in relevance-castronaut-0.6.0
- old
+ new
@@ -54,11 +54,11 @@
puts "Unable to locate configuration. Currently looking at #{default_config}. You can pass a custom configuration path by using the -C flag."
exit(0)
end
end
-Sinatra::Application.default_options.merge!(
- :env => Castronaut.config.environment.to_sym,
+Sinatra::Application.set(
+ :environment => Castronaut.config.environment.to_sym,
:run => true,
:raise_errors => true,
:logging => true,
:port => Castronaut.config.respond_to?(:server_port) ? Castronaut.config.server_port : Sinatra::Application.default_options[:port]
)