deno.land / x / mongoose@6.7.5 / scripts / static.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
'use strict';
const express = require('express');const app = express();
const website = require('./website');
const port = process.env.PORT ? parseInt(process.env.PORT, 10) : 8089;
async function main() { await website.pugifyAllFiles(); // start watching for file changes and re-compile them, so that they can be served directly website.startWatch();
app.use('/', express.static(website.cwd));
app.listen(port, () => { console.log(`now listening on http://localhost:${port}`); });}
main();
mongoose

Version Info

Tagged at
a year ago