Fix migrations to actually run
Test / test (push) Failing after 58s Details

This commit is contained in:
Jeff 2024-10-02 01:32:34 -04:00
parent 0cd1e061b7
commit 8a3be36048
2 changed files with 4 additions and 1 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/migrate.ts && npx tsx server.ts
CMD npx tsx ./api/data/upgrade.ts && npx tsx server.ts

3
api/data/upgrade.ts Normal file
View File

@ -0,0 +1,3 @@
import migrateToLatest from "./migrate"
migrateToLatest()