bin/visage in visage-app-0.2.4 vs bin/visage in visage-app-0.2.5
- old
+ new
@@ -2,11 +2,11 @@
require 'pathname'
require 'socket'
fqdn = Socket.gethostbyname(Socket.gethostname).first
-
+$stdout.sync = true
@root = Pathname.new(File.dirname(__FILE__)).parent.expand_path
action = ARGV[0]
case action
when "start"
@@ -19,9 +19,12 @@
puts '| |/ / (__ ) /_/ / /_/ / __/'
puts '|___/_/____/\__,_/\__, /\___/'
puts ' /____/'
puts
puts "will be running at http://#{fqdn}:9292/"
+ puts
+ require @root.join('lib/visage-app')
+ puts "Looking for RRDs in #{Visage::Config.rrddir}"
puts
config = @root.join('lib/visage/config.ru').to_s
server = Rack::Server.new(:config => config, :Port => 9292)
server.start