making changes for heroku server
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
# tinder for jobs
|
||||
|
||||
# Instructions to Run
|
||||
|
||||
`node server.js` which will serve the static files
|
||||
|
||||
@@ -8,7 +8,7 @@ app.use('/css', express.static(__dirname + '/public/css'));
|
||||
app.use('/js', express.static(__dirname + '/public/js'));
|
||||
app.use('/images', express.static(__dirname + '/public/images'));
|
||||
|
||||
var server = app.listen(8081, function () {
|
||||
var port = server.address().port;
|
||||
const port = server.address().port || 8081;
|
||||
var server = app.listen(port, function () {
|
||||
console.log('Server started at http://localhost:%s', port);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user