remove server

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-02-17 19:10:06 +01:00
parent e4335d3eb0
commit 2bbab980ba
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -1,21 +0,0 @@
import Server from "lume/core/server.ts"
import expires from "lume/middlewares/expires.ts"
import not_found from "lume/middlewares/not_found.ts"
const port = 8000
const server = new Server({
port: port,
root: `${Deno.cwd()}/dist`,
})
server.use(expires())
server.use(not_found({
root: `${Deno.cwd()}/dist`,
page404: "404.html",
}))
server.start()
console.log(`Listening on http://localhost:${port}`)