Skip to content

Commit

Permalink
fix: set proper port on wundergraph
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jan 30, 2024
1 parent 96eec52 commit 5adebdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wundergraph/.wundergraph/wundergraph.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default configureWunderGraphServer(() => ({
options: {
listen: {
host: new EnvironmentVariable('SERVER_HOST', '0.0.0.0'),
port: new EnvironmentVariable('SERVER_PORT', '3003'),
port: new EnvironmentVariable('SERVER_PORT', process.env.PORT ?? '3003'),
},
logger: {
level: new EnvironmentVariable<LoggerLevel>('SERVER_LOG_LEVEL', 'debug'),
Expand Down
1 change: 1 addition & 0 deletions wundergraph/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ COPY . .

# Run in production mode
ENV NODE_ENV=production
ENV PORT=3000

# initialize db and start the app
CMD npm run build && npm run start

0 comments on commit 5adebdb

Please sign in to comment.