Skip to content

Commit

Permalink
添加英文部署文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Finb committed Aug 24, 2023
1 parent aca2817 commit 3c4802e
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion docs/en-us/deploy.md
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
...

## Docker
```
docker run -dt --name bark -p 8080:8080 -v `pwd`/bark-data:/data finab/bark-server
```

## Docker-Compose
```
mkdir bark && cd bark
curl -sL https://git.io/JvSRl > docker-compose.yaml
docker-compose up -d
```
## Manual Deployment

1. Download executable files based on operating system platform. <br> <a href='https://github.com/Finb/bark-server/releases'>https://github.com/Finb/bark-server/releases</a><br>
Or compile it yourself. <br>
<a href="https://github.com/Finb/bark-server">https://github.com/Finb/bark-server</a>

2. Run
```
./bark-server_linux_amd64 -addr 0.0.0.0:8080 -data ./bark-data
```
3. You may need to do
```
chmod +x bark-server_linux_amd64
```
Please note that bark-server defaults to using the /data directory to save data. Please make sure that bark-server has permission to read and write the /data directory, or you can use the -data option to specify a directory.

## Test
```
curl http://0.0.0.0:8080/ping
```
If it returns pong, it means the deployment was successful

0 comments on commit 3c4802e

Please sign in to comment.