Skip to content

Commit

Permalink
refactor!: remove LISTEN_HOST env
Browse files Browse the repository at this point in the history
  • Loading branch information
woody146 committed Aug 19, 2023
1 parent bd99f40 commit 4be59d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ DATABASE_LOGGING = 1

# PORT = 3000
API_HOST = '127.0.0.1'
LISTEN_HOST = ::

# SLAVE_FOR = producer
SLAVE_MAX_TRANSPORT_PER_WORKER = 500
Expand Down
2 changes: 1 addition & 1 deletion src/utils/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function startServer(routers: RouteConfig[]) {

const address = await server.listen({
port: port ? parseInt(port) : 3000,
host: process.env.LISTEN_HOST || process.env.API_HOST,
host: process.env.API_HOST,
});
console.log('✅ App ready: ' + address);
} catch (err) {
Expand Down

0 comments on commit 4be59d0

Please sign in to comment.