From fcfa7e91d77990e34c15f3c961ffb1f9c3ecc3e5 Mon Sep 17 00:00:00 2001 From: Cassowary Date: Fri, 5 Jul 2024 11:02:26 -0700 Subject: [PATCH] Add db:migrate to entrypoint so we dont get a broken start after upgrade --- abra.sh | 2 +- entrypoint.sh.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abra.sh b/abra.sh index b933148..c61e70d 100755 --- a/abra.sh +++ b/abra.sh @@ -1,6 +1,6 @@ #!/bin/bash -export ENTRYPOINT_CONF_VERSION=v14 +export ENTRYPOINT_CONF_VERSION=v15 file_env() { diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index 33e7e6f..c343877 100755 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -45,6 +45,6 @@ bundle exec rake db:setup || /bin/true # bundle exec rake webpacker:yarn_install # bundle exec rake assets:clobber bundle exec rake assets:precompile || /bin/true - +bundle exec rake db:migrate || /bin/true /usr/bin/tini -s -- "$@"