Skip to content

Naming the repo "johanbrook.com" was a mistake.

Notifications You must be signed in to change notification settings

johanbrook/johanbrook.com

Repository files navigation

Johan's site

Build & Deploy

Setup

  1. Install deno:
# Mac and Linux
curl -fsSL https://deno.land/install.sh | sh

Other installation options exist too.

  1. Install Lume locally:
deno run -A https://deno.land/x/lume/install.ts

Build

deno task build

Serve

deno task serve

Scripts

Create a new post

./script/new-post

Create a new note ("what's on my mind")

./script/new-note

Manual re-deploy

If something's messed up, this is new without having to do a content change.

./script/deploy

Run a function locally

npm install
npm run functions

Access functions in functions/ as paths on http://127.0.0.1:8788/:function.