Deployment
Contracts (Foundry)
- Build:
forge build - Test:
forge test - Config:
foundry.toml - Contracts:
contracts/*.sol, testscontracts/test/*.t.sol - Testnet: Scripts in
contracts/testnet/script/(DeployTinyFrensNFT, DeployTestFRENS, DeployEconomy, etc.). Seecontracts/testnet/README.mdandcontracts/testnet/TESTNET-POWERSHELL.md. - Broadcasts:
broadcast/contains deployment artifacts.
Web/app hosting
- Landing/site: Static files built into
dist/and published to nginx on miono by GitHub Actions (see server publishing). - Web app:
web/is PWA; served from same origin or subpaths. - Docs:
docs/is rendered to static HTML at https://tinyfrens.lol/docs/ and published with the website.
Server deployment
- Production server:
server-ts/(Node.js/TypeScript). The historical Python server is not a production entrypoint. - Runtime: the exact supported Node.js security release is pinned in
.node-version; deployments fail closed if the server toolchain differs. - Delivery:
.github/workflows/deploy-backend.ymlreconciles production to the exactmainrevision on pushes and manual dispatches. The trusted owner auto-merge workflow dispatches it explicitly after GitHub completes a native auto-merge. - Safety: Releases install side-by-side, run build/startup checks, switch atomically, and roll back the active release when health verification fails.
- Recovery: systemd restarts the process, login lingering keeps the user service manager alive without SSH, and a local timer checks
/healthevery minute. - Verification:
/health/revisionreports the live Git revision; deployment is not successful until the public endpoint matches it. - Integrations: Telegram bot, Discord (partial), relay for party/visits.
Mobile/desktop builds
- Android:
android/(Kotlin). APKs published via GitHub Releases. - Desktop:
desktop/(Electron). Windows/Mac builds published. - iOS:
ios/(Swift shell + widget). Home-screen/PWA path primary now; App Store later.
Verification
- Verification JSON/artifacts under
web/robots-launch/for published contracts (ABI/bytecode/verification). - Foundry verification flows as per testnet docs.
Env/config
- Server needs keys for Telegram/Discord/relay. Never commit secrets.
- Contract deploys use Foundry keystore/ledger as appropriate.
For local dev, see DEVELOPER.md.