fix: ensure .sh scripts are LF in repo, add README note for bash\\r

Made-with: Cursor
This commit is contained in:
whm
2026-03-17 01:49:29 +08:00
parent a0df3a8a41
commit 826617d737
3 changed files with 8 additions and 0 deletions

View File

@@ -53,6 +53,12 @@ npm run dev
chmod +x pull-and-restart.sh restart.sh
```
若执行脚本报错 `bash\r: No such file or directory`(行尾为 Windows 的 CRLF在项目根目录执行一次
```bash
sed -i 's/\r$//' pull-and-restart.sh restart.sh
```
再执行 `chmod +x pull-and-restart.sh restart.sh` 后重试。
- **拉取代码并重启**`cd ~/project/yh_web && ./pull-and-restart.sh`
- **仅重启服务**`cd ~/project/yh_web && ./restart.sh`
- 对外域名https://yuheng.yuxindazhineng.com