summaryrefslogtreecommitdiffstats
path: root/README.md
blob: c49a15699a7470ecade1f46f10edfa658b3bdcb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Blog/CV

## Local

### Prerequisites

- Hugo: `brew install hugo`

### Development

- Run `hugo server -D`

### Build

- Run `hugo`

### Deploy

- Build website using `hugo`
- Copy the generated `public` directory to any hosting environment.
  - srht.site: `tar -C public -cvz . > site.tar.gz && hut pages publish -d a14m.srht.site site.tar.gz`
  - cloudflare: `npx wrangler pages deploy public`

## Docker

### Prerequisites

- Docker: `brew install docker`

### Build

- Run `docker build . -t website`
- Run `docker run -p 1313:1313 -it website`

Or

- Run `docker-compose build`
- Run `docker-compose up`