remove server
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
e4335d3eb0
commit
2bbab980ba
1 changed files with 0 additions and 21 deletions
21
server.ts
21
server.ts
|
@ -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}`)
|
Loading…
Reference in a new issue