Gui improvements and ideas

This commit is contained in:
david 2024-07-20 16:52:12 +02:00
parent 3f4c7d17bf
commit 2ae0b55e42
54 changed files with 639 additions and 237 deletions

View file

@ -1,12 +1,14 @@
#!/bin/bash
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
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..."