Skip to content

Commit

Permalink
minor updates fix, release ready 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
manjillama committed Jul 31, 2021
1 parent 78188a6 commit d8ec221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 0 additions & 8 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
export const STARTUP_MESSAGE = `
_____.___. __ .__ _____ __ .__
\\__ | |____ _/ |________|__| / \\ _____/ |_ ___________ ____ ___.__. ____ | | ____ ______
/ | \\__ \\\\ __\\_ __ \\ | / \\ / \\ / _ \\ __\\/ _ \\_ __ \\_/ ___< | |/ ___\\| | _/ __ \\ / ___/
\\____ |/ __ \\| | | | \\/ | / Y ( <_> ) | ( <_> ) | \\/\\ \\___\\___ \\ \\___| |_\\ ___/ \\___ \\
/ ______(____ /__| |__| |__| \\____|__ /\\____/|__| \\____/|__| \\___ > ____|\\___ >____/\\___ >____ >
\\/ \\/ \\/ \\/\\/ \\/ \\/ \\/
`;
9 changes: 5 additions & 4 deletions src/index.ts
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' : ''
}`,
);
});

0 comments on commit d8ec221

Please sign in to comment.