diff --git a/package.json b/package.json index 9eb44d4..8ae929f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "src for lenords.net", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prestart": "echo waddup" }, "repository": { "type": "git", diff --git a/prestart-buildmd.sh b/prestart-buildmd.sh new file mode 100644 index 0000000..c0769a8 --- /dev/null +++ b/prestart-buildmd.sh @@ -0,0 +1 @@ +echo "Building HTML partials from markdown" \ No newline at end of file diff --git a/server.js b/server.js index f133c81..5b649b7 100644 --- a/server.js +++ b/server.js @@ -1,3 +1,4 @@ +const PORT = 8090; var express = require('express'); var app = express(); @@ -10,7 +11,7 @@ app.set('view engine', 'ejs'); app.use(express.static(__dirname + '/assets')); app.get(/\/.*/, function(req, res) { - console.log(req.path); + console.log('Request for page: ' + req.path); let pathname = 'pages' + req.path; if ((pathname)[pathname.length - 1] === '/') { @@ -20,4 +21,4 @@ app.get(/\/.*/, function(req, res) { res.render(pathname); }); -app.listen(8090); \ No newline at end of file +app.listen(PORT); \ No newline at end of file