Fixes for new environment

This commit is contained in:
PCOG sites
2014-07-15 17:52:49 +02:00
parent 516e09bfba
commit bab08f987d
9 changed files with 19 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ require "state_pattern"
project_root = File.dirname(File.absolute_path(__FILE__))
Dir.glob(project_root + "/app/models/*.rb").each{|f| require f}
Dir.glob(project_root + "/app/helpers/SearchingForSyncState.rb").each{|f| require f}
Dir.glob(project_root + "/app/helpers/*.rb").each{|f| require f}
connection_details = YAML::load(File.open('config/database.yml'))
@@ -16,7 +17,7 @@ ActiveRecord::Base.establish_connection(connection_details)
if __FILE__ == $0
#params for serial port
port_str = "/dev/ttyUSB1" #may be different for you
port_str = "/dev/ttyUSB0" #may be different for you
baud_rate = 9600
data_bits = 7
stop_bits = 1