fix unexpected prismaclient generate
This commit is contained in:
@@ -1 +1,2 @@
|
||||
node_modules
|
||||
epess-database/node_modules
|
||||
@@ -26,6 +26,9 @@ FROM build AS runtime
|
||||
|
||||
COPY --from=node_modules /app/node_modules ./node_modules
|
||||
|
||||
# Generate the Prisma client
|
||||
RUN npm run prisma:generate
|
||||
|
||||
# Expose the port
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ const config: CodegenConfig = {
|
||||
overwrite: true,
|
||||
schema: "https://api.epess.org/graphql",
|
||||
generates: {
|
||||
"src/graphql/types/graphql.d.ts": {
|
||||
"./src/graphql/types/graphql.d.ts": {
|
||||
plugins: ["typescript", "typescript-resolvers"]
|
||||
}
|
||||
}
|
||||
|
||||
75
logs.txt
Normal file
75
logs.txt
Normal file
@@ -0,0 +1,75 @@
|
||||
#0 building with "desktop-linux" instance using docker driver
|
||||
|
||||
#1 [api internal] load build definition from Dockerfile
|
||||
#1 transferring dockerfile: 668B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [api internal] load metadata for docker.io/library/node:20
|
||||
#2 DONE 1.8s
|
||||
|
||||
#3 [api internal] load .dockerignore
|
||||
#3 transferring context: 52B done
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [api node_base 1/2] FROM docker.io/library/node:20@sha256:fffa89e023a3351904c04284029105d9e2ac7020886d683775a298569591e5bb
|
||||
#4 resolve docker.io/library/node:20@sha256:fffa89e023a3351904c04284029105d9e2ac7020886d683775a298569591e5bb 0.0s done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [api internal] load build context
|
||||
#5 transferring context: 543.62kB 0.3s done
|
||||
#5 DONE 0.3s
|
||||
|
||||
#6 [api node_base 2/2] WORKDIR /app
|
||||
#6 CACHED
|
||||
|
||||
#7 [api node_modules 1/3] COPY package*.json ./
|
||||
#7 CACHED
|
||||
|
||||
#8 [api node_modules 2/3] RUN npm config set legacy-peer-deps true
|
||||
#8 CACHED
|
||||
|
||||
#9 [api node_modules 3/3] RUN npm install
|
||||
#9 CACHED
|
||||
|
||||
#10 [api build 1/1] COPY . .
|
||||
#10 DONE 0.9s
|
||||
|
||||
#11 [api runtime 1/2] COPY --from=node_modules /app/node_modules ./node_modules
|
||||
#11 DONE 2.9s
|
||||
|
||||
#12 [api runtime 2/2] RUN npm run prisma:generate
|
||||
#12 0.607
|
||||
#12 0.607 > epess-web-backend@0.0.1 prisma:generate
|
||||
#12 0.607 > npx prisma generate --schema=./epess-database/prisma/schema.prisma
|
||||
#12 0.607
|
||||
#12 1.500 Environment variables loaded from .env
|
||||
#12 1.502 Prisma schema loaded from epess-database/prisma/schema.prisma
|
||||
#12 12.77
|
||||
#12 12.77 ✔ Generated Prisma Client (v5.19.1) to ./epess-database/node_modules/@prisma/client in 338ms
|
||||
#12 12.77
|
||||
#12 12.77 ✔ Generated Pothos integration to ./src/types/pothos.generated.ts in 62ms
|
||||
#12 12.77
|
||||
#12 12.77 Start by importing your Prisma Client (See: http://pris.ly/d/importing-client)
|
||||
#12 12.77
|
||||
#12 12.77 Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
|
||||
#12 12.77
|
||||
#12 12.77
|
||||
#12 12.77 warn Versions of prisma@5.20.0 and @prisma/client@5.19.1 don't match.
|
||||
#12 12.77 This might lead to unexpected behavior.
|
||||
#12 12.77 Please make sure they have the same version.
|
||||
#12 12.99 npm notice
|
||||
#12 12.99 npm notice New minor version of npm available! 10.8.2 -> 10.9.0
|
||||
#12 12.99 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
|
||||
#12 12.99 npm notice To update run: npm install -g npm@10.9.0
|
||||
#12 12.99 npm notice
|
||||
#12 DONE 13.0s
|
||||
|
||||
#13 [api] exporting to image
|
||||
#13 exporting layers
|
||||
#13 exporting layers 13.0s done
|
||||
#13 exporting manifest sha256:9d28fbbad876bd861c59992e6ed767768cd3fd055b0dc357814f19ae41505daa 0.0s done
|
||||
#13 exporting config sha256:c0e62a1f31804b71d7244810bf231f5a2b4e82da3c014edffe6bc4871400a76c done
|
||||
#13 exporting attestation manifest sha256:9a3dd5ebe98a3071aa88a777c7d1648bb0fdf09f21a6178735c312655aac5546 0.0s done
|
||||
#13 exporting manifest list sha256:8fd012fe4699ac992144a31c04f8331b7d401b74ca126b91555da7e4822f5450 0.0s done
|
||||
#13 naming to docker.io/library/epess-web-backend-api:latest done
|
||||
#13 unpacking to docker.io/library/epess-web-backend-api:latest
|
||||
3313
package-lock.json
generated
3313
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
import { forwardRef, Inject, Injectable } from '@nestjs/common';
|
||||
// import { forwardRef, Inject, Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class MinioService {
|
||||
constructor(
|
||||
@Inject(forwardRef(() => ConfigService))
|
||||
private configService: ConfigService,
|
||||
) {}
|
||||
}
|
||||
// @Injectable()
|
||||
// export class MinioService {
|
||||
// constructor(
|
||||
// @Inject(forwardRef(() => ConfigService))
|
||||
// private configService: ConfigService,
|
||||
// ) {}
|
||||
// }
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class OrderSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class PaymentSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class RefundTicketSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class CenterSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class CenterStaffSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class ChatroomSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class ResumeSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class ServiceSchema extends PothosSchema {
|
||||
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { clerkClient, } from '@clerk/clerk-sdk-node';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
import { clerkClient } from '@clerk/clerk-sdk-node';
|
||||
|
||||
@Injectable()
|
||||
export class UserSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class WorkshopSchema extends PothosSchema {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
import { Builder } from '../Graphql/graphql.builder';
|
||||
import { PrismaService } from 'src/Prisma/prisma.service';
|
||||
import { PrismaService } from '../Prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class WorkshopOrganizationSchema extends PothosSchema {
|
||||
|
||||
Reference in New Issue
Block a user