We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120b0e7 commit 57674b9Copy full SHA for 57674b9
1 file changed
bin/dummy-app
@@ -30,6 +30,16 @@ fi
30
31
cd ./dummy-app
32
33
+if [ -n "$DB_HOST" ]; then
34
+ echo "~~~> Configuring database.yml for DB_HOST=$DB_HOST"
35
+ ruby -i -pe '
36
+ if $_ =~ /^ pool:/
37
+ $_ += " host: <%= ENV.fetch(\"DB_HOST\", \"localhost\") %>\n"
38
+ $_ += " username: <%= ENV[\"DB_USERNAME\"] %>\n"
39
+ end
40
+ ' config/database.yml
41
+fi
42
+
43
echo "Generating manifest file"
44
mkdir -p app/assets/config
45
cat <<MANIFESTJS > app/assets/config/manifest.js
0 commit comments