No description
- Makefile 69.9%
- Shell 30.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
FRONTEND_PORT 3011 (3001 занят uptime-kuma); пароль БД без спецсимволов URL. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
| .forgejo/workflows | ||
| .env.example | ||
| .gitignore | ||
| deploy.sh | ||
| docker-compose.yml | ||
| Makefile | ||
| README.md | ||
wishnilist-infra
Compose + деплой Wishnilist на Beelink через Forgejo Actions (без GitHub).
Layout на сервере
~/apps/wishnilist/
prod/
wishnilist-infra/ ← этот репо @ main
wishnilist-frontend/ ← @ main
wishnilist-backend/ ← @ main
wishnilist-tg-bot/ ← @ main (опционально)
wishnilist-infra/.env
test/
… то же, app-репы @ testing
Compose project: wishnilist_prod / wishnilist_test.
Ветки: prod → main, test → testing. Infra всегда main.
Bootstrap test (один раз)
mkdir -p ~/apps/wishnilist/test && cd ~/apps/wishnilist/test
git clone ssh://git@git.postilga.ru:2222/vladimir/wishnilist-infra.git
git clone ssh://git@git.postilga.ru:2222/vladimir/wishnilist-frontend.git
git clone ssh://git@git.postilga.ru:2222/vladimir/wishnilist-backend.git
# git clone …/wishnilist-tg-bot.git # когда будет
cd wishnilist-frontend && git checkout -B testing origin/testing || git checkout -B testing main
cd ../wishnilist-backend && git checkout -B testing origin/testing || git checkout -B testing main
cd ../wishnilist-infra
cp .env.example .env
# поправить порты/секреты для test (см. комментарии в .env.example)
chmod +x deploy.sh
./deploy.sh --stack test --service all
Дальше в Forgejo: Actions → Deploy Wishnilist → Run (stack=test|prod, service=…).
Runner label: postilga-host (тот же, что у Postilga).
Ручной деплой
cd ~/apps/wishnilist/test/wishnilist-infra
./deploy.sh --stack test --service frontend
Makefile (*-test / *-prod) по-прежнему работает из каталога infra при корректном .env и -p wishnilist_test|wishnilist_prod.