Files
soul-yongping/next-project/.env.port.example
2026-02-09 14:43:35 +08:00

33 lines
1021 B
Plaintext
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.

# 端口配置示例
# 复制此文件为 .env 并根据实际情况修改
# ========================================
# 应用端口配置(避免多项目端口冲突)
# ========================================
# 方式1: 本地开发启动pnpm start
# 在终端中设置:
# Windows PowerShell: $env:PORT=30006; pnpm start
# Windows CMD: set PORT=30006 && pnpm start
# Linux/Mac: PORT=30006 pnpm start
# 方式2: Docker Compose 部署
# 设置 APP_PORT 变量,容器内外端口都使用此值
APP_PORT=30006
# 方式3: Docker 直接运行
# docker run -e PORT=3007 -p 3007:3007 soul-book
# ========================================
# 多项目端口规划建议
# ========================================
# soul-book: 30006
# other-project: 3007
# api-service: 3008
# ...
# 注意:
# 1. 修改端口后,需要同步更新支付回调地址等配置
# 2. 部署到宝塔面板时deploy_soul.py 会使用配置的端口
# 3. 确保防火墙和反向代理配置正确