# Gitea deployment The portfolio extends the existing Gitea homepage. It has no application backend or browser credentials. 1. Build and check the source with `python tools/build.py` and `python tools/check.py`. 2. Back up the installed homepage, related custom metadata, and public portfolio assets. 3. Copy `deploy/home.tmpl` into `$GITEA_CUSTOM/templates/home.tmpl`. 4. Copy `dist/assets/portfolio/` into `$GITEA_CUSTOM/public/assets/portfolio/`. 5. Add an appropriate homepage title/description and sharing image. Preserve Gitea's contextual repository/profile metadata. 6. Restart Gitea and check its health, homepage, all four illustrated case studies, public repository views and anonymous clone access. 7. Restore the prior template/assets if those checks fail. Custom templates should match the installed Gitea release. The stylesheet is scoped to `.portfolio` and does not replace the native repository theme. Static case pages are served under `/assets/portfolio/case-studies/` through Gitea's documented custom-asset mechanism. The source repository and displayed project links do not require authentication. The featured content and initial public-source list are server-rendered HTML; repository discovery is optional progressive enhancement. Official reference: [Customizing Gitea](https://docs.gitea.com/administration/customizing-gitea/).