Skip to content

Commit

Permalink
Update references to ./dist/src (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-maj authored Oct 28, 2023
1 parent a20c1d5 commit 5f43215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/db/scripts/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5f43215

Please sign in to comment.