rails new -n a11yist -d sqlite3 --skip-action-mailbox --css bootstrap --js esbuild .

This commit is contained in:
David Schärer 2024-07-15 02:19:27 +02:00
commit 535a051755
91 changed files with 2469 additions and 0 deletions

20
bin/entrypoint Executable file
View file

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