move contents of loomios docker_start.sh to entrypoint.sh. unclear why this helps

This commit is contained in:
stevensting
2025-02-19 13:26:21 +01:00
parent 8761f3dc6e
commit c6afdb09c0
+7 -12
View File
@@ -31,18 +31,13 @@ if [ -n "$1" ]; then
echo "Running '$1'" echo "Running '$1'"
$1 $1
else else
if [ "${TASK:-}" = "worker" ]; then
if [ ! -f /loomio/storage/migrations_ran ]; then
echo "first deploy, running DB setup..."
rake db:setup
touch /loomio/storage/migrations_ran
fi
echo "running DB migrations..."
rake db:migrate
echo "DB migrations finished"
fi
echo "starting loomio!" echo "starting loomio!"
/loomio/docker_start.sh if [ "$TASK" = "worker" ]; then
bundle exec sidekiq
else
bundle install
bundle exec rake db:prepare
bundle exec puma -C config/puma.rb
fi
fi fi