mirror of
https://github.com/tonytins/tonybark.com.git
synced 2025-03-22 17:52:19 +00:00
chore: update readme
This commit is contained in:
parent
3e776018d6
commit
926305669b
2 changed files with 15 additions and 4 deletions
17
README.md
17
README.md
|
@ -4,13 +4,15 @@ WhiteBreeze targets a single user and is meant for someone to self-host their Wh
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
If for development:
|
### Development
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install
|
npm install
|
||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
If for production:
|
### Production
|
||||||
|
|
||||||
Change environment variables:
|
Change environment variables:
|
||||||
```sh
|
```sh
|
||||||
PUBLIC_HANDLE="myhandle.bsky.social" # Your handle, or DID
|
PUBLIC_HANDLE="myhandle.bsky.social" # Your handle, or DID
|
||||||
|
@ -18,9 +20,18 @@ PUBLIC_ABOUT="Welcome to my blog!" # Optional description of the kinds of posts
|
||||||
# PUBLIC_ABOUT Shows up under your Bluesky profile description in the profile card.
|
# PUBLIC_ABOUT Shows up under your Bluesky profile description in the profile card.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Standalone
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
node index.js
|
node index.js
|
||||||
```
|
```
|
||||||
Put environment variables ahead of the last command, port can also be configured with `PORT`.
|
Put environment variables ahead of the last command, port can also be configured with `PORT`.
|
||||||
|
|
||||||
|
#### Dockerized
|
||||||
|
Modify `docker-compose.yaml` and change the host port if necessary.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker compose up
|
||||||
|
```
|
|
@ -8,4 +8,4 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: ./.env
|
env_file: ./.env
|
||||||
ports:
|
ports:
|
||||||
- 5000:3000
|
- 3000:3000 # host:container
|
Loading…
Add table
Reference in a new issue