17 lines
394 B
Bash
17 lines
394 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Überprüfen, ob die Datenbank eingerichtet werden muss
|
|
if [ -f /codeocean/tmp/pids/server.pid ]; then
|
|
rm /codeocean/tmp/pids/server.pid
|
|
fi
|
|
|
|
# Führen Sie db:setup nur aus, wenn es notwendig ist
|
|
bundle exec rake db:prepare
|
|
|
|
# Main process is the following command
|
|
echo "Starting the main process with the following command: $@"
|
|
|
|
# Starten Sie den Hauptprozess
|
|
exec "$@"
|