diff --git a/Dockerfile b/Dockerfile index f0b5f47..cf3cc31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,4 +40,4 @@ USER appuser ENV NODE_ENV=production EXPOSE 4000 -CMD ["npm", "start"] +CMD ["npm", "run" , "start:prod"] diff --git a/package.json b/package.json index a9801b0..4b34621 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "start": "nest start dist/main", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", - "start:prod": "node --max-old-space-size=2048 dist/main", + "start:prod": "node --max-old-space-size=2048 dist/src/main.js", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "test": "jest", "test:watch": "jest --watch", diff --git a/src/modules/auth/services/auth.service.ts b/src/modules/auth/services/auth.service.ts index 63bfa50..c02ae97 100644 --- a/src/modules/auth/services/auth.service.ts +++ b/src/modules/auth/services/auth.service.ts @@ -35,7 +35,7 @@ export class AuthService { await this.otpService.set(phone, code) - // await this.smsService.sendotp(normalizedPhone, code); + await this.smsService.sendotp(phone, code); return { code }; }