Skip to content

Instantly share code, notes, and snippets.

@birendra-b
Created June 29, 2020 16:38
Show Gist options
  • Save birendra-b/c78a5420b1cce5f953e0b7c881d031a8 to your computer and use it in GitHub Desktop.
Save birendra-b/c78a5420b1cce5f953e0b7c881d031a8 to your computer and use it in GitHub Desktop.
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