forked from adventurous-starfish/glint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
15 lines (11 loc) · 669 Bytes
/
server.js
File metadata and controls
15 lines (11 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Server-Side Entry Point
// -----------------------
//
// This is where we configure our server to use the appropriate port and being listening for requests.
// Import the Express app which is configured in the serverSetup.js file.
var app = require('./server/serverSetup.js').app;
// If deployed to production then the port will be assigned from the production environment's PORT environment variable. Otherwise, if run locally the server will listen for requests on port 8000.
var port = process.env.PORT || 8000;
// Have the server begin listening for requests on the appropriate port.
app.listen(port);
console.log('Server is now listening on port ' + port);