all repos — shwarp.ca @ 779ee5b495de29ae62e46ff4e1ec884ce157ca71

Homepage repo

README.md (view raw, download)

 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
# My Doom homepage

### Run for local dev

Set up your nginx reverse proxy (I use SSI, so this is required):
```nginx
cp config/shwarp.ca.local /etc/nginx/sites-enabled/
sudo nginx -s reload
```

Run this script to start the dev server (may prompt you to install [live-server](https://www.npmjs.com/package/live-server), if you don't already have it):
```shell
./scripts/dev
```

And finally browse to `http://127.0.0.1:3000/` (**not** `3232` -- that's what nginx proxies to).

### Run for real ("production")

Make sure you can ssh to your remote, add the hostname or IP to .env, then run:
```shell
./scripts/deploy
```

#### Generate the changelog

```shell
cp -a ./scripts/update-changelog .git/hooks/post-commit
```