日期:2014-05-16 浏览次数:20677 次
/home/agideo/.cruise/projects/mindaitong_dev/work agideo$ ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/home/agideo/projects/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" rake aborted! Mysql2::Error: No database selected: SHOW TABLES (See full trace by running task with --trace) (in /home/agideo/.cruise/projects/mindaitong_dev/work) [CruiseControl] Invoking Rake task "db:test:purge" [CruiseControl] Invoking Rake task "db:migrate"
vi /home/agideo/projects/cruisecontrol-1.4.0/tasks/cc_build.rake if configurations and configurations.has_key?("test") and configurations["test"]["adapter"] 'mysql' 改为 if configurations and configurations.has_key?("test") and (configurations["test"]["adapter"] ‘mysql’ or configurations[“test”][“adapter”] == ‘mysql2’)