Skip to content

Commit

Permalink
fix: adjust env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhermeasper committed Nov 23, 2023
1 parent 31d7661 commit 2b5ac4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import https from 'https';
import fs from 'fs';
import cookieParse from 'cookie-parser';

process.env.NODE_ENV = 'production';

const app: Express = express();

dotevn.config();
Expand Down Expand Up @@ -66,6 +64,6 @@ mongoConnection().then(() => {
app,
);

httpServer.listen(process.env.PORT || 3000);
httpsServer.listen(process.env.PORT || 3106);
httpServer.listen(process.env.HTTP_PORT || 3000);
httpsServer.listen(process.env.HTTPS_PORT || 3106);
});

0 comments on commit 2b5ac4d

Please sign in to comment.