Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
use specific port
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev authored Sep 6, 2023
1 parent 48beca4 commit 52b0601
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ RUN npm install

COPY . .

ENV port $port
EXPOSE $port
EXPOSE 3000

CMD ["npm", "start"]
5 changes: 1 addition & 4 deletions example.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# Server Port
port =

# Sentry DSN
sentry_dsn =
sentry_dsn =
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const express = require("express");
const app = express();

require("dotenv").config();
const port = 3000;

const Sentry = require("@sentry/node");
const bodyParser = require("body-parser");
Expand All @@ -18,7 +19,6 @@ Sentry.init({
})

const router = require("./util/router");
const port = process.env.port;

app.use(Sentry.Handlers.requestHandler());
app.use(Sentry.Handlers.tracingHandler());
Expand Down

0 comments on commit 52b0601

Please sign in to comment.