From f40559dcf0978e799de46bf49116d231ed5a15bf Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sat, 7 Jun 2025 19:04:19 +0100 Subject: [PATCH] Run rake db:migrate during startup Fixes #15 --- abra.sh | 2 +- entrypoint.sh.tmpl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/abra.sh b/abra.sh index 1729e2c..6269194 100644 --- a/abra.sh +++ b/abra.sh @@ -1,4 +1,4 @@ -export ENTRYPOINT_CONF_VERSION=v5 +export ENTRYPOINT_CONF_VERSION=v6 export ENTRYPOINT_STREAMING_CONF_VERSION=v1 grep=grep diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index f1a18a5..a718d21 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -40,4 +40,6 @@ file_env "OIDC_CLIENT_SECRET" # NOTE: this was working in mastodon 4.2 but breaks in 4.3 # sed -i '/- admin$/d' /opt/mastodon/config/settings.yml +RAILS_ENV=production bundle exec rake db:migrate + /usr/bin/tini -s -- "$@"