Skip to content

Commit abeb20c

Browse files
authored
Merge pull request #67 from DouglasNeuroInformatics/accept-external-connections
fix: listen on 0.0.0.0
2 parents c94125a + 2a09d0b commit abeb20c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/__tests__/app.container.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('AppContainer', () => {
8888
await appContainer.bootstrap();
8989

9090
expect(mockApp.useLogger).toHaveBeenCalledWith(mockLogger);
91-
expect(mockApp.listen).toHaveBeenCalledWith(3000);
91+
expect(mockApp.listen).toHaveBeenCalledWith(3000, '0.0.0.0');
9292
expect(mockLogger.log).toHaveBeenCalledWith('Application is running on: http://localhost:3000');
9393
});
9494
});

src/app/app.container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class AppContainer extends AbstractAppContainer {
2020
// configure logger here, so in tests we can setup differently
2121
app.useLogger(logger);
2222

23-
await app.listen(this.envConfig.API_PORT);
23+
await app.listen(this.envConfig.API_PORT, '0.0.0.0');
2424
const url = await app.getUrl();
2525
logger.log(`Application is running on: ${url}`);
2626
}

0 commit comments

Comments
 (0)