Commit b453459
committed
fix: Export env vars before docker-compose in deploy script
Problem: docker-compose substitutes ${VAR} from shell environment, but
env variables from secrets/*.env files were not exported. This caused
RabbitMQ RABBITMQ_DEFAULT_USER/PASS to be empty, resulting in auth failures.
Solution: Use 'set -a' to auto-export all variables, source env files,
then 'set +a' before running docker-compose commands.
This fixes RabbitMQ authentication errors in production worker.1 parent 1f3a173 commit b453459
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
0 commit comments