hugo+node install

This commit is contained in:
Milana
2023-10-02 11:39:58 +03:00
parent c1bd86eeec
commit c80a29bb75
21 changed files with 1527 additions and 0 deletions

14
run.js Normal file
View File

@@ -0,0 +1,14 @@
const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(path.join(__dirname, 'webpage/public')));
app.get('/', async(req, res) => {
res.sendFile(path.join(__dirname, 'public', 'index.html'));
// res.sendFile(path.join(__dirname, 'webpage/public', 'index.html'));
});
app.listen(80, () => {
console.log("Server successfully running on port 8080");
});