From 5f43215f757ff0c1ea420c2bdc4d03ab1572e01c Mon Sep 17 00:00:00 2001 From: Adam Majmudar <64697628+adam-maj@users.noreply.github.com> Date: Fri, 27 Oct 2023 17:40:46 -0700 Subject: [PATCH] Update references to ./dist/src (#275) --- Dockerfile | 2 +- src/db/scripts/setup.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1be019148..a64b726e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -114,7 +114,7 @@ EXPOSE 3005 COPY package*.json yarn*.lock ./ # Replace the schema path in the package.json file -RUN sed -i 's_"schema": "./src/prisma/schema.prisma"_"schema": "./dist/src/prisma/schema.prisma"_g' package.json +RUN sed -i 's_"schema": "./src/prisma/schema.prisma"_"schema": "./dist/prisma/schema.prisma"_g' package.json # Copy only production dependencies from the prod-dependencies stage COPY --from=prod-dependencies /app/node_modules ./node_modules diff --git a/src/db/scripts/setup.ts b/src/db/scripts/setup.ts index 7bc000b68..48e86de75 100644 --- a/src/db/scripts/setup.ts +++ b/src/db/scripts/setup.ts @@ -14,7 +14,7 @@ const main = async () => { const schema = process.env.NODE_ENV === "production" - ? `./dist/src/prisma/schema.prisma` + ? `./dist/prisma/schema.prisma` : `./src/prisma/schema.prisma`; if (hasWalletsTable) {