visage-app 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/visage +3 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.7
|
data/bin/visage
CHANGED
@@ -4,6 +4,7 @@ require 'pathname'
|
|
4
4
|
|
5
5
|
require 'socket'
|
6
6
|
fqdn = Socket.gethostbyname(Socket.gethostname).first
|
7
|
+
port = 9292
|
7
8
|
$stdout.sync = true
|
8
9
|
@root = Pathname.new(File.dirname(__FILE__)).parent.expand_path
|
9
10
|
action = ARGV[0]
|
@@ -20,14 +21,14 @@ when "start"
|
|
20
21
|
puts '|___/_/____/\__,_/\__, /\___/'
|
21
22
|
puts ' /____/'
|
22
23
|
puts
|
23
|
-
puts "will be running at http://#{fqdn}
|
24
|
+
puts "will be running at http://#{fqdn}:#{port}/"
|
24
25
|
puts
|
25
26
|
require @root.join('lib/visage-app')
|
26
27
|
puts "Looking for RRDs in #{Visage::Config.rrddir}"
|
27
28
|
puts
|
28
29
|
|
29
30
|
config = @root.join('lib/visage/config.ru').to_s
|
30
|
-
server = Rack::Server.new(:config => config, :Port =>
|
31
|
+
server = Rack::Server.new(:config => config, :Port => port, :server => "webrick")
|
31
32
|
server.start
|
32
33
|
when "genapache"
|
33
34
|
require 'socket'
|