fix(worker): decouple database runtime from next
This commit is contained in:
+2
-1
@@ -34,6 +34,7 @@ EXPOSE 3000
|
||||
CMD ["bun", "start"]
|
||||
|
||||
# Stage 4: Scheduled video upload worker
|
||||
FROM builder AS video-upload-worker
|
||||
FROM deps AS video-upload-worker
|
||||
COPY . .
|
||||
COPY scripts/video-upload-crontab /etc/crontabs/root
|
||||
ENTRYPOINT ["crond", "-f", "-l", "2", "-L", "/dev/stdout"]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import "server-only";
|
||||
import { drizzle } from "drizzle-orm/postgres-js";
|
||||
import postgres from "postgres";
|
||||
import * as schema from "./schema";
|
||||
|
||||
Reference in New Issue
Block a user