Add docker detection and lint
This commit is contained in:
parent
b9a57d6083
commit
3018bf2ee2
2 changed files with 34 additions and 29 deletions
|
@ -11,3 +11,4 @@ services:
|
|||
MAX_PARTY_LINES: '1'
|
||||
INITIAL_RUMOR: '...nothing has been said, yet.'
|
||||
ENVIRONMENT: 'production'
|
||||
DOCKER: 'true'
|
||||
|
|
|
@ -285,5 +285,9 @@ app.delete('/deletePartyLine', [
|
|||
|
||||
// Start the server
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Rumor Party Line - Running on http://localhost:${PORT}`);
|
||||
console.log(`Rumor Party Line`);
|
||||
console.log(`Internally running on http://localhost:${PORT} in ${process.env.ENVIRONMENT} mode.`);
|
||||
if (process.env.DOCKER) {
|
||||
console.log(`Seems you're running on Docker! Check your external port in the compose file to avoid confusion!`);
|
||||
}
|
||||
});
|
Loading…
Add table
Reference in a new issue