Skip to content

Commit 774be14

Browse files
committed
Add port environment
1 parent 87376e5 commit 774be14

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
PORT=8080
12
GITHUB_TOKEN1=
23
GITHUB_TOKEN2=
34
GITHUB_API=https://api.github.com/graphql
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { serve } from "https://deno.land/std@0.125.0/http/server.ts";
22
import requestHandler from "./api/index.ts";
33

4-
serve(requestHandler, { port: 8080 });
4+
serve(requestHandler, { port: Number(Deno.env.get("PORT")) || 8080 });

0 commit comments

Comments
 (0)