1.1 KiB
1.1 KiB
Coolify + Gitea Walkthrough
This repository is set up so:
upstream= GitHub source (https://github.com/otangid/muslim-api.git)origin= your Gitea repo (https://git.backoffice.biz.id/dwindown/muslim-api.git)
1) One-time remote setup
Run from this repo root:
git remote rename origin upstream
git remote add origin https://git.backoffice.biz.id/dwindown/muslim-api.git
git remote -v
Expected:
upstreampoints to GitHuboriginpoints to Gitea
2) First push to Gitea
After your local commit is ready:
git push -u origin main
3) Command flow for each update
When GitHub has new commits and you want to redeploy via Coolify:
git checkout main
git fetch upstream
git pull --ff-only upstream main
git push origin main
Coolify will redeploy when it detects the new commit on your Gitea branch.
4) Optional quick checks before push
git status
git log --oneline --decorate -n 5
Notes
- App startup now does not require a physical
.envfile. - Server uses
PORTfrom environment, with fallback to3000. - Configure your runtime environment variables in Coolify UI.