A lot :)
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s

This commit is contained in:
david 2024-09-05 22:54:38 +02:00
parent aad67af0d1
commit 63fc206c27
153 changed files with 2043 additions and 646 deletions

View file

@ -1,20 +1,23 @@
#!/bin/bash
#!/bin/ash
set -e
echo "1: ${1}"
echo "2: ${2}"
if [ -f tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi
# Make the if statement match any invocation of the "rails server" command
if [[ "${1}" == *rails ]] && ([ "${2}" == "server" ] || [ "${2}" == "s" ]); then
echo "+ preparing database..."
./bin/rails db:prepare
echo "- preparing database done."
if [ ! -f /app/no_migrate ] && [ ! -v NO_MIGRATE ]; then
echo "+ preparing database..."
./bin/rails db:prepare
echo "- preparing database done."
if [ -n "$ASSETS_PATH" ]; then
echo "+ copying assets..."
cp -nr public/* $ASSETS_PATH
echo "- copying assets done."
fi
fi
# Execute the given or default command: