Something went wrong on our end
-
Ismael Posada Trobo authored
Get rid off leftover files included on base image.
Ismael Posada Trobo authoredGet rid off leftover files included on base image.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
init-dbmigration.sh 401 B
#!/bin/bash
# Replace environment variables
# This is mandatory as at the time of doing the migration, discourse needs to know redis IP,
# which is set thanks to discourse.conf file.
echo "--> Overwritting env variables ..."
envsubst < /tmp/discourse-configmap/discourse.conf > /discourse/config/discourse.conf
echo "--> DONE"
# Migrate db
exec env RAILS_ENV="production" bundle exec rake db:migrate