From b1e963c510754511bd6eb36e7e5eeacec101b56d Mon Sep 17 00:00:00 2001 From: Tomas Pizarro Date: Mon, 3 Jul 2017 09:44:15 +0000 Subject: [PATCH] Set default host only for new sample apps --- bitnami/rails/5/rootfs/app-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bitnami/rails/5/rootfs/app-entrypoint.sh b/bitnami/rails/5/rootfs/app-entrypoint.sh index 3fcfc3911d69..f457c8a80a4f 100755 --- a/bitnami/rails/5/rootfs/app-entrypoint.sh +++ b/bitnami/rails/5/rootfs/app-entrypoint.sh @@ -35,7 +35,6 @@ wait_for_db() { setup_db() { log "Configuring the database" - sed -i 's/host: localhost/host: mariadb/g' /app/config/database.yml bundle exec rails db:create } @@ -50,6 +49,8 @@ if [ "$1" == "bundle" -a "$2" == "exec" ]; then rails new . --skip-bundle --database mysql # Add rubyracer sed -i "s/# gem 'therubyracer'/gem 'therubyracer'/" Gemfile + log "Setting default host to \`mariadb\`" + sed -i 's/host:.*$/host: mariadb/g' /app/config/database.yml fi if ! gems_up_to_date; then