Skip to content

Commit

Permalink
fix: Source environment variables in entrypoint script and set enviro…
Browse files Browse the repository at this point in the history
…nment in supervisord configuration
  • Loading branch information
MrAnyx committed Jan 3, 2025
1 parent dd2de2e commit f942a05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .docker/entrypoint.prod.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
set -e

# Source environment variables
echo "Sourcing environment variables..."
. /etc/environment

# Run database migrations
echo "Running database migrations..."
php bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration
Expand Down
1 change: 1 addition & 0 deletions .docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
environment=HOME="/root",USER="root"

0 comments on commit f942a05

Please sign in to comment.