Compare commits

..

No commits in common. "67f4abd986ec6aaf1f20094d4c50bdfa0fd90fc6" and "c943408a89c8495817cf7418b6396598ea3a6842" have entirely different histories.

3 changed files with 4 additions and 8 deletions

View File

@ -15,8 +15,8 @@ RUN ls -a
FROM oven/bun
COPY --from=builder /app/build .
COPY ./drizzle ./drizzle
COPY /drizzle.config.ts .
COPY --from=builder /app/drizzle .
COPY --from=builder /app/drizzle.config.ts .
COPY /local.db .
EXPOSE 3000

View File

@ -10,4 +10,4 @@ services:
environment:
- DATABASE_URL=local.db
ports:
- '${PORT}:3000'
- "${PORT}:3000"

View File

@ -7,11 +7,7 @@ import { migrate } from 'drizzle-orm/bun-sqlite/migrator';
export const init: ServerInit = async () => {
if (!dev) {
try {
migrate(db, { migrationsFolder: 'drizzle' });
} catch (error) {
console.log(error);
}
await migrate(db, { migrationsFolder: './drizzle' });
}
};