feat: update Dockerfile and docker-compose.yml to use WEB_PORT variable and streamline migration process

This commit is contained in:
2026-04-27 22:49:13 -04:00
parent 4fd6772f2e
commit ad89ad001d
5 changed files with 9 additions and 14 deletions
+1 -3
View File
@@ -23,7 +23,6 @@ import { migrate } from "drizzle-orm/node-postgres/migrator";
import path from "path";
import fs from "fs";
import crypto from "crypto";
import { fileURLToPath } from "url";
const databaseUrl = process.env.DATABASE_URL;
if (!databaseUrl) {
@@ -31,8 +30,7 @@ if (!databaseUrl) {
process.exit(1);
}
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const migrationsFolder = path.resolve(__dirname, "../../../drizzle");
const migrationsFolder = path.resolve(process.cwd(), "drizzle");
const pool = new Pool({
connectionString: databaseUrl,