Files
rails-app/README.md

48 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Rails 8.1 + SQLite 应用
这是一个基于Rails 8.1和SQLite的示例应用部署在JPD K3s集群上。
## 功能特性
- Rails 8.1 最新版本
- SQLite 数据库(持久化存储)
- GitOps自动部署Gitea + ArgoCD
- 域名访问http://r1.jpd.net3w.com
- 代码热更新(本地修改,远程自动部署)
## 目录结构
```
001-rails8/
├── README.md # 本文件
├── Dockerfile # Rails应用容器镜像
├── k8s/ # Kubernetes配置文件
│ ├── deployment.yaml # 部署配置
│ ├── service.yaml # 服务配置
│ ├── ingress.yaml # Ingress配置
│ └── pvc.yaml # 持久化存储配置
├── app/ # Rails应用代码
│ └── ...
└── .gitignore # Git忽略文件
```
## 部署流程
1. 本地开发Rails应用
2. 构建Docker镜像
3. 推送到Gitea仓库
4. ArgoCD自动检测并部署
5. 通过域名访问应用
## 访问地址
- HTTP: http://r1.jpd.net3w.com
- HTTPS: https://r1.jpd.net3w.com
## 开发流程
1. 本地修改代码
2. Git commit & push
3. ArgoCD自动同步
4. 应用自动更新