fix: comprehensive init-tables.sql for all new tables (todos, security_audits, daily_summaries, task_comments)
All checks were successful
CI/CD / test (push) Successful in 19s
CI/CD / deploy (push) Successful in 1s

This commit is contained in:
2026-01-30 05:06:52 +00:00
parent cbfeb6db70
commit 8407dde30b
2 changed files with 69 additions and 2 deletions

View File

@@ -11,5 +11,5 @@ COPY . .
# Generate migrations and run
EXPOSE 3100
RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/apt/lists/*
COPY init-todos.sql /app/init-todos.sql
CMD ["sh", "-c", "echo 'Running init SQL...' && psql \"$DATABASE_URL\" -f /app/init-todos.sql 2>&1 && echo 'Init SQL done' && echo 'Running db:push...' && yes | bun run db:push 2>&1; echo 'db:push exit code:' $? && echo 'Starting server...' && bun run start"]
COPY init-tables.sql /app/init-tables.sql
CMD ["sh", "-c", "echo 'Running init SQL...' && psql \"$DATABASE_URL\" -f /app/init-tables.sql 2>&1 && echo 'Init SQL done' && echo 'Running db:push...' && yes | bun run db:push 2>&1; echo 'db:push exit code:' $? && echo 'Starting server...' && bun run start"]