From c42e69868901538c402a8b8575c1f5b69b04bbc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Van=C3=AD=C4=8Dek?= Date: Thu, 23 Mar 2023 19:39:16 +0100 Subject: [PATCH] Set DB adapter on production. --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index be3cae2..d9c46bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,15 +23,17 @@ RUN set -eux; \ # Install plugin dependencies # fill up "database.yml" with bogus entries so the redmine Gemfile will pre-install all database adapter dependencies echo '# the following entries only exist to force `bundle install` to pre-install all database adapter dependencies -- they can be safely removed/ignored' > ./config/database.yml; \ - for adapter in mysql2 postgresql sqlserver sqlite3; do \ - echo "$adapter:" >> ./config/database.yml; \ - echo " adapter: $adapter" >> ./config/database.yml; \ - done; \ + #for adapter in mysql2 postgresql sqlserver sqlite3; do \ + # echo "$adapter:" >> ./config/database.yml; \ + # echo " adapter: $adapter" >> ./config/database.yml; \ + #done; \ + echo "production:" >> ./config/database.yml; \ + echo " adapter: mysql2" >> ./config/database.yml; \ bundle check || bundle install; \ # For hourglass plugin cp plugins/000_redmine_x_ux_upgrade/init.rb plugins/000_redmine_x_ux_upgrade/init.rb.orig; \ git apply ux_upgrade-disable_db.patch; \ - echo Hourglass::Assets.compile|RAILS_ENV=mysql2 rails console; \ + echo Hourglass::Assets.compile|rails console; \ #bundle exec rake redmine:plugins:assets RAILS_ENV=mysql2 NAME=redmine_hourglass; \ #bundle exec rake redmine:plugins:assets RAILS_ENV=postgresql NAME=redmine_hourglass; \ #bundle exec rake redmine:plugins:assets RAILS_ENV=sqlserver NAME=redmine_hourglass; \