tonybark.com/README.md

41 lines
925 B
Markdown
Raw Normal View History

# TonyBark.com
A small, self-hosted [WhiteWind](https://whtwnd.com/) blog, powered by [WhiteBreeze](https://github.com/hugeblank/whitebreeze).
2024-12-03 10:07:06 -08:00
## Usage
*[Bun](https://bun.sh/) recommended.*
2024-12-03 10:46:06 -08:00
### Environment variables
2024-12-03 10:07:06 -08:00
Whether in development or production, you will need to change environment variables when working with WhiteBreeze.
2024-12-03 10:46:06 -08:00
2024-12-03 10:07:06 -08:00
```sh
PUBLIC_HANDLE="myhandle.bsky.social" # Your handle, or DID
PUBLIC_ABOUT="Welcome to my blog!" # Optional description of the kinds of posts you'll be making, or a greeting.
# PUBLIC_ABOUT Shows up under your Bluesky profile description in the profile card.
```
### Development
```sh
npm install
npm run dev
```
### Standalone
2024-12-03 10:46:06 -08:00
2024-12-03 10:07:06 -08:00
```
npm install
2024-12-03 10:10:54 -08:00
npm run build
node index.js
```
2024-12-03 10:46:06 -08:00
Put environment variables ahead of the last command, port can also be configured with `PORT`.
### Dockerized
2024-12-03 10:46:06 -08:00
Modify `docker-compose.yaml` and change the host port if necessary.
```
docker compose up
```