Rakefile in perkins-0.0.1 vs Rakefile in perkins-0.0.2
- old
+ new
@@ -14,15 +14,16 @@
desc 'Test perkins.'
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end
-#usage: PERKINS_CONFIG=./examples/config.rb RACK_ENV=development rake db:migrate --trace
+#USAGE: bundle exec rake db:migrate PERKINS_CONFIG=./examples/boot RACK_ENV=test --trace
namespace :db do
task :load_config do
ENV['RACK_ENV'] = ENV['RACK_ENV'].present? ? ENV['RACK_ENV'] : "development"
config_file = ENV["PERKINS_CONFIG"]
- app = eval(File.open(config_file).read)
+ require config_file
+ #app = eval(File.open(config_file).read)
end
end