lib/server.rb in vitrine-0.0.16 vs lib/server.rb in vitrine-0.0.17
- old
+ new
@@ -20,11 +20,11 @@
# Builds the Rack application with all the wrappers
def self.build_app(options)
Rack::Builder.new do
use Rack::ShowStatus
use Rack::ShowExceptions
-
+
guardfile_path = options[:root] + '/Guardfile'
if File.exist?(guardfile_path)
$stderr.puts "Attaching LiveReload via Guardfile at #{guardfile_path.inspect}"
# Assume livereload is engaged
use Rack::LiveReload
@@ -68,9 +68,10 @@
# Run the server, largely stolen from Serve
def self.start(passed_options = {})
options = DEFAULTS.merge(passed_options)
check_dirs_present!(options)
+ $stderr.puts "Vitrine v.#{Vitrine::VERSION} booting in dev mode"
app = build_app(options)
start_server(app, options)
end
end
\ No newline at end of file