making changes for heroku server

This commit is contained in:
talksik
2020-07-06 12:45:32 -07:00
parent 8ba1d62274
commit c8344dd03f
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
# tinder for jobs
# Instructions to Run
`node server.js` which will serve the static files
+2 -2
View File
@@ -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);
});