diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-09-02 16:50:16 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-09-02 16:50:16 +0200 |
commit | 9ec38f1ebaffa51cac69e5e1a09c988556a690a1 (patch) | |
tree | 446d10bde1c2b5168f66106312df1082fbcd3759 /Rakefile | |
parent | 823fb7f7d74946640c38b91241c83a916588df91 (diff) |
set default rack_env in Rakefiel to production (like in ruby-api-wrapper)
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,7 +43,7 @@ end desc "load config" task :load_config do require 'yaml' - ENV['RACK_ENV'] = 'test' unless ENV['RACK_ENV'] + ENV['RACK_ENV'] = 'production' unless ENV['RACK_ENV'] basedir = File.join(ENV['HOME'], ".opentox") config_dir = File.join(basedir, "config") config_file = File.join(config_dir, "#{ENV['RACK_ENV']}.yaml") @@ -70,7 +70,7 @@ end desc "Migrate the database through scripts in db/migrate. Target specific version with VERSION=x" task :migrate => :load_config do - [ 'rubygems', 'opentox-ruby-api-wrapper', 'active_record', 'logger' ].each{ |l| require l } + [ 'rubygems', 'active_record', 'logger' ].each{ |l| require l } ActiveRecord::Base.establish_connection( :adapter => @@config[:database][:adapter], :host => @@config[:database][:host], |