Updated README with deploy info

This commit is contained in:
Mike Conrad
2025-02-27 09:19:43 -05:00
parent 734c184c46
commit b77465d686
2 changed files with 25 additions and 6 deletions

View File

@ -1,8 +1,22 @@
```shell
git clone https://git.hackanooga.com/mikeconrad/hackanooga.com.git
cd hackanooga.com
git checkout master
git submodule init
git submodule update
hugo server --disableFastRender
$ git clone https://git.hackanooga.com/mikeconrad/hackanooga.com.git
$ cd hackanooga.com
$ git checkout master
$ git submodule init
$ git submodule update
$ hugo server --disableFastRender
```
## Deployment
I created a super simple shell script to automate deployment. It requires the wrangler cli to be installed:
```shell
$ npm i -g wrangler
```
Once you have wrangler installed, simply run:
```shell
$ bash deploy.sh
```
The first time, you will be asked to authenticate to Cloudflare.

5
deploy.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/env bash
rm -rf public
hugo build
npx wrangler pages deploy --project-name hackanooga-blog public/
rm -rf public