Created
June 29, 2020 16:38
-
-
Save birendra-b/c78a5420b1cce5f953e0b7c881d031a8 to your computer and use it in GitHub Desktop.
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
import './LoadEnv'; // Must be the first import | |
import app from '@server'; | |
// Start the server | |
const port = Number(process.env.PORT || 3000); | |
app.listen(port, () => { | |
logger.info('Express server started on port: ' + port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment