From 5ca044120798a3691a248f6b3394ef661bd9fb32 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Thu, 14 Mar 2013 23:54:20 -0500 Subject: [PATCH] * fixing startup of websocket-gatceway --- bin/websocket_gateway | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/websocket_gateway b/bin/websocket_gateway index 6b186d8d7..19cf17391 100755 --- a/bin/websocket_gateway +++ b/bin/websocket_gateway @@ -6,7 +6,8 @@ bin_dir = File.expand_path(File.dirname(__FILE__)) app_config_file = File.join(bin_dir, '..', 'config', 'application.yml') db_config_file = File.join(bin_dir, '..', 'config', 'database.yml') - +jamenv = ENV['JAMENV'] +jamenv ||= 'development' config = YAML::load(File.open(app_config_file))[jamenv] db_config = YAML::load(File.open(db_config_file))[jamenv] @@ -20,9 +21,6 @@ include JamWebsockets # run some method -jamenv = ENV['JAMENV'] -jamenv ||= 'development' - if config["verbose"] Logging.logger.root.level = :debug