diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2023-11-20 16:52:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2023-11-20 16:52:22 +0000 |
commit | b9a629cd256705a0ab14d6000b1bd26c0a693b03 (patch) | |
tree | 5b92e97e1cce621690bb0497487aa44bd9645d21 /lib | |
parent | 543674090ee227d239480e2401ba2a2c26baffc8 (diff) | |
download | redmine-b9a629cd256705a0ab14d6000b1bd26c0a693b03.tar.gz redmine-b9a629cd256705a0ab14d6000b1bd26c0a693b03.zip |
Adds support for environment variable for CI mysql host.
git-svn-id: https://svn.redmine.org/redmine/trunk@22469 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/ci.rake | 2 |
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' |