Skip to content

Commit

Permalink
Add logging for production
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Sep 15, 2023
1 parent c731d1a commit 163b1db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ENV VITE_MACROSTRAT_API_DOMAIN=$VITE_MACROSTRAT_API_DOMAIN
ARG VITE_CORELLE_API_DOMAIN
ENV VITE_CORELLE_API_DOMAIN=$VITE_CORELLE_API_DOMAIN

ENV NODE_ENV=PRODUCTION
ENV NODE_ENV=production

WORKDIR /usr/src/app
COPY . ./
Expand Down
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ async function startServer() {

const port = process.env.PORT || 3000
app.listen(port)
console.log(`Server running at http://localhost:${port}`)
console.log(`Server (${process.env.NODE_ENV}) running at http://localhost:${port}`)
}

0 comments on commit 163b1db

Please sign in to comment.