Skip to content

Commit

Permalink
docs: add file.encoding parameter for jar deployment document (#460)
Browse files Browse the repository at this point in the history
Fixes #457 

```release-note
None
```
  • Loading branch information
ruibaby authored Oct 31, 2024
1 parent 618b35f commit c03925c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/getting-started/install/jar-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ title: 使用 JAR 文件部署
6. 测试运行 Halo

```bash
cd ~/app && java -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/
cd ~/app && java -Dfile.encoding=UTF-8 -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/
```

7. 如果没有观察到异常日志,即可尝试访问 Halo
Expand Down Expand Up @@ -197,7 +197,7 @@ title: 使用 JAR 文件部署
[Service]
Type=simple
User=USER
ExecStart=/usr/bin/java -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/
ExecStart=/usr/bin/java -Dfile.encoding=UTF-8 -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
StandOutput=syslog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ title: 使用 JAR 文件部署
6. 测试运行 Halo

```bash
cd ~/app && java -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/
cd ~/app && java -Dfile.encoding=UTF-8 -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/
```

7. 如果没有观察到异常日志,即可尝试访问 Halo
Expand Down Expand Up @@ -197,7 +197,7 @@ title: 使用 JAR 文件部署
[Service]
Type=simple
User=USER
ExecStart=/usr/bin/java -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/
ExecStart=/usr/bin/java -Dfile.encoding=UTF-8 -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
StandOutput=syslog
Expand Down

0 comments on commit c03925c

Please sign in to comment.