文章摘要
Devpush是一个开源、可自托管的平台,类似Vercel但支持多种语言(Python、Node.js、PHP等)。它提供基于Git的零停机部署、实时日志、团队管理、自定义环境和域名等功能,适用于各类应用部署。该项目采用MIT许可,可自行搭建服务器使用。
文章总结
开源项目 DevPush:自托管的 Vercel 替代方案
核心内容: DevPush 是一个开源自托管平台,可作为 Vercel、Render 和 Netlify 的替代方案。它支持多语言应用(Python、Node.js、PHP 等)的构建和部署,具有以下特点:
主要功能: - Git 推送部署:支持 GitHub 推送部署,零停机更新和即时回滚 - 多语言支持:兼容任何可在 Docker 中运行的语言 - 环境管理:支持分支映射和加密环境变量的多环境配置 - 实时监控:可搜索的构建和运行时日志 - 团队协作:基于角色的访问控制和权限管理 - 自定义域名:支持自定义域名和自动 Let's Encrypt SSL 证书 - 自托管:可在自有服务器上运行,采用 MIT 许可
安装要求: - 需要 Ubuntu/Debian 服务器(推荐使用 Hetzner 的 CPX31 机型) - 服务器需具备 SSH 和 sudo 权限 - 需配置 DNS 记录指向服务器 IP
快速安装: 1. 通过 curl 命令运行安装脚本 2. 切换到 devpush 用户 3. 配置 .env 文件(需设置 Let's Encrypt 邮箱、应用域名等关键参数) 4. 启动服务并访问配置的 URL
开发支持: - 提供详细的开发脚本(安装、启动、数据库迁移等) - 支持 macOS 开发环境 - 代码变更可即时反映在容器中
项目支持: - 欢迎贡献代码、报告问题 - 可通过 GitHub Sponsors 赞助 - 提供 Discord 交流群组
许可协议: 采用 MIT 开源许可证
(注:删减了详细的脚本命令、环境变量列表等过于技术性的内容,保留了核心功能、安装要点和项目支持信息)
评论总结
总结评论内容:
对Vercel替代品的需求
- 由于Vercel及其CEO的争议,用户开始寻找替代品。
- "Vercel alternatives are getting traction and relevance after Vercel and CEO controversies" (baobun)
- "Vercel has been outdated for sometime and it is refreshing to see alternatives coming up" (mclightning)
对Coolify和Dokploy的比较
- Coolify被认为更成熟和完整,但CapRover因其简单性更受欢迎。
- "Coolify feels more complete and mature, but we now steer more towards the simplicity of CapRover" (oersted)
- "What's the difference with Dokploy?" (maelito)
对自托管和安全的担忧
- 用户对“通过bash脚本管道运行sudo”和缺乏数据库可见性表示担忧。
- "I am also horrified at the 'let’s pipe scripts to bash with sudo'" (sgarland)
- "If you don’t know how to harden a Linux box on your own, frankly you have no business hosting anything on it" (sgarland)
对工具功能描述的模糊性
- 用户抱怨工具描述过于宽泛,缺乏细节。
- "None of those projects have a good description of what they do. They just 'ship anything to anywhere'" (imcritic)
- "I struggle to grasp what it does" (imcritic)
对/dev/push的评价
- 有人认为/dev/push是Vercel的优越替代品,值得尝试。
- "This one seems like superior to Vercel already, definitely worth the switch" (mclightning)
- "devpu.sh seems the most minimalist with just python" (Imustaskforhelp)
对自托管的经济性和实用性
- 自托管在专用服务器上更经济实惠,且管理负担较小。
- "It is so much cheaper than the cloud and a minor management burden" (oersted)
- "128GB of RAM and 64 cores can go a long way and surprisingly cheap in Hetzner" (oersted)
对Kubernetes和标准化部署的建议
- 建议使用KEDA和K8s进行标准化部署,避免供应商锁定。
- "Use KEDA and K8s, and if you need compute at the edge lean into Cloudflare" (CuriouslyC)
对Vercel功能的不满
- 用户希望Vercel能提供更多底层AWS Lambda基础设施的访问。
- "What I actually miss in Vercel is the lack of exposure to the underlying AWS Lambda infrastructure" (pjmlp)
对工具多样性的支持
- 用户支持更多选择,认为多样性对社区有益。
- "More the options the better (coolify,dockploy,devpu.sh)" (Imustaskforhelp)
对功能改进的期望
- 用户希望工具能提供更多默认功能,如内网支持和多服务器部署。
- "I always miss features or defaults like internal network only with edge nodes" (hhthrowaway1230)