summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/ci.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake
index cb0e639e8..80df61cc3 100644
--- a/lib/tasks/ci.rake
+++ b/lib/tasks/ci.rake
@@ -58,7 +58,7 @@ file 'config/database.yml' do
case database
when /(mysql|mariadb)/
dev_conf = {'adapter' => 'mysql2',
- 'database' => dev_db_name, 'host' => 'localhost',
+ 'database' => dev_db_name, 'host' => (ENV['CI_MYSQL_HOST'] || 'localhost'),
'encoding' => 'utf8'}
if ENV['RUN_ON_NOT_OFFICIAL']
dev_conf['username'] = 'root'