* fixing startup of websocket-gatceway

This commit is contained in:
Seth Call 2013-03-14 23:54:20 -05:00
parent 9e4468d1af
commit 5ca0441207
1 changed files with 2 additions and 4 deletions

View File

@ -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