Dockerfile and Docker compose
This commit is contained in:
16
entrypoint.sh
Normal file
16
entrypoint.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/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 "$@"
|
Reference in New Issue
Block a user