This commit is contained in:
SimonFJ20 2024-09-26 01:07:02 +02:00
parent 1ccb1d0e7c
commit 833af735cf
4 changed files with 7 additions and 2 deletions

1
.env.example Normal file
View File

@ -0,0 +1 @@
PORT=8000

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
bunker
bunker.db
files/
.env

View File

@ -4,6 +4,8 @@
"indentWidth": 4
},
"tasks": {
"check": "deno check main.ts"
"check": "deno check main.ts",
"dev": "deno run -A --unstable-ffi --env main.ts",
"compile": "deno compile --allow-net --allow-read --allow-env --allow-write --allow-ffi --allow-run --unstable-ffi --env main.ts"
}
}

View File

@ -235,4 +235,4 @@ new oak.Application()
index: "index.html",
});
})
.listen({ port: 8000 });
.listen({ port: parseInt(Deno.env.get("PORT")!) });