Permalink
Browse files

make port configurable

  • Loading branch information...
1 parent ffbe4f7 commit c4f1e93f7ac2a0e8705783d01ba4d6892ad9ae50 Cody Fauser committed with Aug 25, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 config/config.yml.sample
  2. +1 −1 server.rb
View
1 config/config.yml.sample
@@ -4,3 +4,4 @@ log_files:
- /var/log/apps/user.log.*
- /var/log/mail.*
+port: 8080
View
2 server.rb
@@ -240,7 +240,7 @@ class NotAuthenticatedError < StandardError; end
EventMachine::run {
EventMachine.epoll
- EventMachine::start_server("0.0.0.0", 8080, Handler)
+ EventMachine::start_server("0.0.0.0", CONFIG['port'] || 8080, Handler)
puts "Listening..."
puts "Valid log files are #{LOG_FILES.inspect}"
}

0 comments on commit c4f1e93

Please sign in to comment.