Add docker detection and lint

This commit is contained in:
pedrocx486 2025-01-27 23:14:43 -03:00
parent b9a57d6083
commit 3018bf2ee2
2 changed files with 34 additions and 29 deletions

View file

@ -11,3 +11,4 @@ services:
MAX_PARTY_LINES: '1'
INITIAL_RUMOR: '...nothing has been said, yet.'
ENVIRONMENT: 'production'
DOCKER: 'true'

View file

@ -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!`);
}
});