-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78188a6
commit d8ec221
Showing
2 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +0,0 @@ | ||
export const STARTUP_MESSAGE = ` | ||
_____.___. __ .__ _____ __ .__ | ||
\\__ | |____ _/ |________|__| / \\ _____/ |_ ___________ ____ ___.__. ____ | | ____ ______ | ||
/ | \\__ \\\\ __\\_ __ \\ | / \\ / \\ / _ \\ __\\/ _ \\_ __ \\_/ ___< | |/ ___\\| | _/ __ \\ / ___/ | ||
\\____ |/ __ \\| | | | \\/ | / Y ( <_> ) | ( <_> ) | \\/\\ \\___\\___ \\ \\___| |_\\ ___/ \\___ \\ | ||
/ ______(____ /__| |__| |__| \\____|__ /\\____/|__| \\____/|__| \\___ > ____|\\___ >____/\\___ >____ > | ||
\\/ \\/ \\/ \\/\\/ \\/ \\/ \\/ | ||
`; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import app from './app'; | ||
import { logger } from './utils'; | ||
import { STARTUP_MESSAGE } from './constants'; | ||
|
||
const PORT = process.env.PORT || 5000; | ||
|
||
app.listen(PORT, () => { | ||
console.log('\x1b[36m', STARTUP_MESSAGE, '\x1b[0m'); | ||
|
||
logger.info(`✅ Server listening on port ${PORT}`); | ||
logger.info(`🚀 Deploy stage: ${process.env.NODE_ENV}${process.env.STAGING ? ' staging' : ''}`); | ||
logger.info( | ||
`🚀 Deploy stage: ${process.env.NODE_ENV}${ | ||
process.env.STAGING ? ' staging' : '' | ||
}`, | ||
); | ||
}); |