Add deployment guide and push script
- Add push_to_gitea.sh script for manual Git push instructions - Update README.md with correct repository URL - Include deployment and troubleshooting guides
This commit is contained in:
@@ -71,8 +71,8 @@ gitea:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 克隆项目
|
# 克隆项目
|
||||||
git clone <project-url>
|
git clone http://218.84.152.14:65001/huxunan/gitpm.git
|
||||||
cd giteapm
|
cd gitpm
|
||||||
|
|
||||||
# 修改配置文件
|
# 修改配置文件
|
||||||
cp config/config.yaml.example config/config.yaml
|
cp config/config.yaml.example config/config.yaml
|
||||||
|
28
push_to_gitea.sh
Executable file
28
push_to_gitea.sh
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "将项目推送到Gitea仓库的脚本"
|
||||||
|
echo "=============================="
|
||||||
|
echo ""
|
||||||
|
echo "1. 确保您已经在Gitea上创建了仓库: http://218.84.152.14:65001/huxunan/gitpm"
|
||||||
|
echo ""
|
||||||
|
echo "2. 运行以下命令推送代码:"
|
||||||
|
echo ""
|
||||||
|
echo "git remote -v"
|
||||||
|
echo ""
|
||||||
|
echo "git push -u origin main"
|
||||||
|
echo ""
|
||||||
|
echo "如果推送失败,可以尝试以下方式:"
|
||||||
|
echo ""
|
||||||
|
echo "方式1 - 使用用户名密码:"
|
||||||
|
echo "git push https://huxunan:YOUR_PASSWORD@218.84.152.14:65001/huxunan/gitpm.git main"
|
||||||
|
echo ""
|
||||||
|
echo "方式2 - 使用Access Token (推荐):"
|
||||||
|
echo "1. 在Gitea中创建Personal Access Token: 设置 -> 应用 -> 生成新的令牌"
|
||||||
|
echo "2. 使用token推送:"
|
||||||
|
echo "git push https://huxunan:YOUR_TOKEN@218.84.152.14:65001/huxunan/gitpm.git main"
|
||||||
|
echo ""
|
||||||
|
echo "当前仓库状态:"
|
||||||
|
git status
|
||||||
|
echo ""
|
||||||
|
echo "远程仓库配置:"
|
||||||
|
git remote -v
|
Reference in New Issue
Block a user