refactor: move drizzle to shared
This commit is contained in:
@@ -9,8 +9,8 @@ COPY package.json bun.lock ./
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# Install web project dependencies
|
||||
COPY src/web/package.json src/web/bun.lock ./src/web/
|
||||
RUN cd src/web && bun install --frozen-lockfile
|
||||
COPY web/package.json web/bun.lock ./web/
|
||||
RUN cd web && bun install --frozen-lockfile
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
@@ -8,7 +8,7 @@ BigInt.prototype.toJSON = function () {
|
||||
|
||||
export default defineConfig({
|
||||
schema: "./shared/db/schema.ts",
|
||||
out: "./drizzle",
|
||||
out: "./shared/db/migrations",
|
||||
dialect: "postgresql",
|
||||
dbCredentials: {
|
||||
url: env.DATABASE_URL,
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
"db:push:local": "drizzle-kit push",
|
||||
"dev": "bun --watch bot/index.ts",
|
||||
"db:studio": "drizzle-kit studio --host 0.0.0.0",
|
||||
"studio:remote": "bash scripts/remote-studio.sh",
|
||||
"dashboard:remote": "bash scripts/remote-dashboard.sh",
|
||||
"remote": "bash scripts/remote.sh",
|
||||
"studio:remote": "bash shared/scripts/remote-studio.sh",
|
||||
"dashboard:remote": "bash shared/scripts/remote-dashboard.sh",
|
||||
"remote": "bash shared/scripts/remote.sh",
|
||||
"test": "bun test"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user