Skip to content

Commit

Permalink
fix blog
Browse files Browse the repository at this point in the history
  • Loading branch information
jollytoad committed Jun 13, 2024
1 parent c3e0e3c commit 967f259
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions cache/blog/http_getting_started
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if you prefer.</p>
<pre><code class="language-sh">deno add @http/generate
</code></pre>
<p>and create a script at <code>scripts/gen.ts</code>:</p>
<pre><code class="language-ts">#!/usr/bin/env -S deno run --allow-ffi --allow-read=. --allow-write=. --allow-net=jsr.io
<pre><code class="language-ts">#!/usr/bin/env -S deno run --allow-ffi --allow-read --allow-write --allow-net=jsr.io

import { generateRoutesModule } from &quot;@http/generate/generate-routes-module&quot;;

Expand Down Expand Up @@ -139,7 +139,7 @@ filesystem routing.</p>
<h3>The production entry point</h3>
<p>For this example I won&#39;t assume any particular production environment.</p>
<p>Create a <code>app/main.ts</code>:</p>
<pre><code class="language-ts">#!/usr/bin/env -S deno run --allow-net --allow-read=.
<pre><code class="language-ts">#!/usr/bin/env -S deno run --allow-net --allow-read

import handler from &quot;./handler.ts&quot;;

Expand Down Expand Up @@ -175,10 +175,11 @@ module.</p>
<pre><code class="language-sh">deno add @http/host-deno-local
</code></pre>
<p>Create a <code>app/dev.ts</code>:</p>
<pre><code class="language-ts">!/usr/bin/env -S deno run --allow-ffi --allow-read=. --allow-write=. --allow-net --watch
<pre><code class="language-ts">#!/usr/bin/env -S deno run --allow-ffi --allow-read --allow-write --allow-net --watch

import generateRoutes from &quot;../scripts/gen.ts&quot;;
import init from &quot;@http/host-deno-local/init&quot;;
import { lazy } from &quot;@http/route/lazy&quot;;

await generateRoutes();

Expand Down
7 changes: 4 additions & 3 deletions routes/blog/http_getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ deno add @http/generate
and create a script at `scripts/gen.ts`:

```ts
#!/usr/bin/env -S deno run --allow-ffi --allow-read=. --allow-write=. --allow-net=jsr.io
#!/usr/bin/env -S deno run --allow-ffi --allow-read --allow-write --allow-net=jsr.io

import { generateRoutesModule } from "@http/generate/generate-routes-module";

Expand Down Expand Up @@ -203,7 +203,7 @@ For this example I won't assume any particular production environment.
Create a `app/main.ts`:

```ts
#!/usr/bin/env -S deno run --allow-net --allow-read=.
#!/usr/bin/env -S deno run --allow-net --allow-read

import handler from "./handler.ts";

Expand Down Expand Up @@ -256,10 +256,11 @@ deno add @http/host-deno-local
Create a `app/dev.ts`:

```ts
!/usr/bin/env -S deno run --allow-ffi --allow-read=. --allow-write=. --allow-net --watch
#!/usr/bin/env -S deno run --allow-ffi --allow-read --allow-write --allow-net --watch

import generateRoutes from "../scripts/gen.ts";
import init from "@http/host-deno-local/init";
import { lazy } from "@http/route/lazy";

await generateRoutes();

Expand Down

0 comments on commit 967f259

Please sign in to comment.