Commit Graph

15 Commits

Author SHA1 Message Date
admin ea9b3b08c6 fix(deploy): handle empty push args 2026-07-06 13:03:53 +08:00
admin fca397a87d ci(deploy): enable containerized production release 2026-07-06 12:58:01 +08:00
admin 2d736f00ba chore(deploy): document auto restart flow 2026-07-06 11:01:42 +08:00
admin 4253da4e4c fix(deploy): force push main branch 2026-07-01 17:41:11 +08:00
admin 7d756d2b50 chore(deploy): remove unused deployment scripts and configuration 2026-06-18 14:32:19 +08:00
admin bb40f3c042 feat(deploy): add script to kill processes on Next.js deployment ports 2026-06-17 19:39:41 +08:00
admin 65891b3a8a chore(deploy): comment out version bump in deployment script 2026-06-15 10:58:22 +08:00
admin 8afcc40b9c fix:社交登录重定向网址错误问题 2026-06-12 18:15:58 +08:00
admin d76b048bb9 chore: move env examples to env-example/ and unify CDN env source
- Reorganize env example files into a dedicated env-example/ directory for clarity
- Update .gitignore to ignore env files (with examples now in env-example/)
- Unify CDN credentials (CF_ZONE_ID / CF_API_TOKEN) to be sourced from .env.local in both test and production deploys
- Update git_hooks/post-receive to copy production env example from new location
- Update deploy scripts (pre_release_web.sh, release_web.sh) to copy the appropriate env example into .env.local before building
- Update _deploy_lib.sh purge_cdn_cache to source from .env.local instead of .env
2026-06-12 15:05:37 +08:00
admin c39a8f5f80 refactor(deploy): parameterize git remote in deploy scripts
Replace hardcoded GIT_REMOTE variable with a function parameter so the
shared deploy library can push to either the production or test remote
from the same script. Rename push_to_server to push_to_remote and update
both deploy_web.sh and deploy_web_test.sh to pass the appropriate remote.
2026-06-12 14:39:09 +08:00
admin 64fad08c4a chore: update .gitignore to ignore all env files and retain example templates
Replace broad `.env*` ignore rule with explicit entries for real env files (`.env`, `.env.local`, `.env.development`, `.env.test`, `.env.production`) while preserving `.env.example` and adding exceptions for the new `.env.development.example`, `.env.test.example`, and `.env.production.example` templates.

Add environment-specific example files to document required variables for development, test, and production setups, including API base URLs, WebSocket endpoints, API timeouts, Auth.js secret, OAuth credentials (Google, Facebook), and Cloudflare CDN configuration.
2026-06-12 14:24:56 +08:00
admin cac3ecd5de chore: add .env.example template and clean up deploy messages
Introduce a tracked .env.example file documenting all required environment
variables (app env, API/WebSocket base URLs, timeouts, Google/Facebook OAuth
credentials, Cloudflare CDN zone/token). Update .gitignore to allow this
file despite the blanket .env* ignore rule. Also simplify the push
success/failure output in scripts/deploy/_deploy_lib.sh by removing
verbose troubleshooting hints.
2026-06-12 14:13:20 +08:00
admin 57992bffac chore(chat): clean up legacy state machine and fix bubble alignment
- Remove redundant `loadingMoreHistory` and `ready` states from chat machine, consolidating history loading flow
- Add `align-self: flex-start` to chat row container for proper alignment
- Clean up commented-out margin rules in text bubble styles
- Update deploy script GIT_REMOTE from "server" to "test"
2026-06-12 11:59:34 +08:00
admin 6b5ec1d290 refactor(deploy): simplify script to git push-based deployment
Replace the previous Next.js build + rsync + archive workflow with a
minimal `push_to_server` helper that only does `git push` to the
`server` remote. Build, install, and start are now expected to be
handled by the server's post-receive hook, removing duplicate logic
and shrinking the script from 164 lines to 46. The old `build`,
`deploy`, `archive`, `setup_env`, and `check_local_build_dir`
functions (along with pnpm/rsync/sshpass usage) have been removed.
2026-06-10 16:48:50 +08:00
admin 4e27b4c512 build: drop next-pwa and switch to default Next 16 build 2026-06-10 14:24:51 +08:00