autogenerated filler database items

This commit is contained in:
Leo Wen
2025-12-13 18:52:46 -08:00
parent a29a8c1f3c
commit c542faf1ad
2 changed files with 738 additions and 28 deletions
+3 -2
View File
@@ -54,9 +54,10 @@ RUN mkdir -p /app/syllabi
# Set environment variables
ENV NODE_ENV=production
ENV PORT=4000
ENV SEED_DATABASE=true
# Expose port
EXPOSE 4000
# Push schema to database and start the application
CMD ["sh", "-c", "bunx prisma db push --accept-data-loss && bun run src/index.ts"]
# Push schema to database, seed data, and start the application
CMD ["sh", "-c", "bunx prisma db push --accept-data-loss && bun run src/nameClasses.ts && bun run src/index.ts"]