Skip to content

Commit

Permalink
fix: change port to 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
harshalranjhani committed Jun 25, 2024
1 parent 3d8062b commit c510e93
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ COPY --from=builder /app/package*.json ./
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/prisma ./prisma

EXPOSE 3000
EXPOSE 8080
# or during execution ❓
CMD [ "yarn", "run", "start:migrate:prod" ]

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
app:
image: googlexyug
ports:
- "3000:3000"
- "8080:8080"
env_file:
- .env
command: ["yarn", "run", "start:migrate:prod"]
2 changes: 1 addition & 1 deletion src/auth/stratergy/google.stratergy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
super({
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: 'http://localhost:3000/auth/google/callback',
callbackURL: 'http://localhost:8080/auth/google/callback',
scope: ['email', 'profile'],
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ async function bootstrap() {
},
});
app.useGlobalFilters(new AllExceptionsFilter());
await app.listen(3000);
await app.listen(8080);
}
bootstrap();

0 comments on commit c510e93

Please sign in to comment.