mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
bumpup 1.16.2 and std/http 0.114.0 (#220)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM denoland/deno:1.14.0
|
||||
FROM denoland/deno:1.16.2
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { listenAndServe } from "https://deno.land/std@0.107.0/http/server.ts"
|
||||
import { serve } from "https://deno.land/std@0.114.0/http/server.ts"
|
||||
|
||||
const port = parseInt(Deno.env.get("PORT") ?? "8000")
|
||||
listenAndServe(`:${port}`, () => new Response("Choo Choo! Welcome to your Deno app\n"))
|
||||
const port = parseInt(Deno.env.get("PORT") ?? "8000");
|
||||
serve(() => new Response("Choo Choo! Welcome to your Deno app\n"),
|
||||
{ addr: `:${port}` });
|
||||
|
||||
console.log(`http://localhost:${port}/`);
|
||||
|
||||
Reference in New Issue
Block a user