lib/hyde/sinatra/init.rb in hydeweb-0.0.5 vs lib/hyde/sinatra/init.rb in hydeweb-0.0.7

- old
+ new

@@ -13,13 +13,15 @@ class Main < Sinatra::Base @@project ||= $project def self.show_start + port = $project.config.port + puts "Starting server..." - puts " http://127.0.0.1:4567 Homepage" - puts " http://127.0.0.1:4567/- File list" + puts " http://127.0.0.1:#{port} Homepage" + puts " http://127.0.0.1:#{port}/- File list" puts "" end get '/-' do @@project.files.inject("") do |a, path| @@ -57,6 +59,6 @@ File.open(html_path) { |f| f.read } + (" "*4096) end end Main.show_start -Main.run! +Main.run! :port => $project.config.port