Try to fix db password not being injected during migration
Test / test (push) Failing after 58s Details

This commit is contained in:
Jeff 2024-10-02 01:46:40 -04:00
parent dfea928ad2
commit 4d5f5543f8
3 changed files with 9 additions and 2 deletions

View File

@ -3,4 +3,4 @@ WORKDIR /tack-up-now
COPY . .
RUN npm install
RUN npx -y remix vite:build
CMD npx tsx ./api/data/upgrade.ts && npx tsx server.ts
CMD ./start.sh

View File

@ -8,8 +8,8 @@ services:
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_USER: postgres
POSTGRES_DB: postgres
env_file: ".env"
volumes:
- ./data:/var/lib/postgresql/data

7
start.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -a
source ./.env
set +a
npx tsx api/data/upgrade.ts
npx tsx server.ts