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('/js', express.static(__dirname + '/public/js'));
|
||||||
app.use('/images', express.static(__dirname + '/public/images'));
|
app.use('/images', express.static(__dirname + '/public/images'));
|
||||||
|
|
||||||
var server = app.listen(8081, function () {
|
const port = server.address().port || 8081;
|
||||||
var port = server.address().port;
|
var server = app.listen(port, function () {
|
||||||
console.log('Server started at http://localhost:%s', port);
|
console.log('Server started at http://localhost:%s', port);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user