fix: bad path in dockerfile copy, chore: cleanup
This commit is contained in:
12
docker/app/entrypoint.sh
Normal file
12
docker/app/entrypoint.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Sleep for a second to ensure DB is awake and ready
|
||||
SLEEP_TIME=$(shuf -i 2-4 -n 1)
|
||||
echo "> Sleeping for ${SLEEP_TIME} seconds to wait for the database"
|
||||
sleep $SLEEP_TIME
|
||||
|
||||
# Provision database
|
||||
php /app/bin/console doctrine:migrations:migrate --no-interaction
|
||||
php /app/bin/console db:seed
|
||||
|
||||
exec docker-php-entrypoint "$@"
|
||||
@@ -1,9 +0,0 @@
|
||||
[program:messenger-consume]
|
||||
command=php /var/www/bin/console messenger:consume async --time-limit=3600
|
||||
user=nobody
|
||||
numprocs=2
|
||||
startsecs=0
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startretries=10
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
Reference in New Issue
Block a user