添加英文部署文档

This commit is contained in:
Fin 2023-08-24 11:36:08 +08:00
parent aca28175a7
commit 3c4802e331
No known key found for this signature in database
GPG Key ID: CFB59B99D87A7B93

View File

@ -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