{"id":50307250,"url":"https://github.com/hra42/deployer-demo","last_synced_at":"2026-05-28T17:30:39.426Z","repository":{"id":357815462,"uuid":"1238309978","full_name":"hra42/deployer-demo","owner":"hra42","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-14T10:41:30.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T12:36:18.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hra42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-14T02:24:24.000Z","updated_at":"2026-05-14T10:41:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hra42/deployer-demo","commit_stats":null,"previous_names":["hra42/deployer-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hra42/deployer-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hra42%2Fdeployer-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hra42%2Fdeployer-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hra42%2Fdeployer-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hra42%2Fdeployer-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hra42","download_url":"https://codeload.github.com/hra42/deployer-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hra42%2Fdeployer-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33619965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-28T17:30:38.544Z","updated_at":"2026-05-28T17:30:39.416Z","avatar_url":"https://github.com/hra42.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deployer-demo\n\nThe canonical test target for [deployer](https://github.com/hra42/deployer) — a small SvelteKit app that ships with everything deployer needs to deploy it: an `adapter-node` build, a `Dockerfile`, and a Traefik-ready `docker-compose.yml`.\n\nStack: SvelteKit (Svelte 5) · Tailwind v4 · shadcn-svelte · TypeScript · Bun · mode-watcher for dark mode.\n\n## Deploy it\n\nPrerequisites on the deploy host (see [Host requirements](https://github.com/hra42/deployer#host-requirements) in the deployer README for the full list):\n\n- Docker + Compose v2\n- A running Traefik instance attached to an external Docker network (default name: `web`)\n- SSH access for the deployer user\n\nOn your laptop:\n\n1. **Fork or push this repo to GitHub.** deployer clones over HTTPS using a token, so it needs to be a real repo it can reach.\n\n2. **Install deployer:**\n\n   ```sh\n   curl -fsSL https://deployer.hra42.lol/install | sh\n   ```\n\n3. **Run setup once** to write `~/.deployer.yml` (SSH host, key path, GitHub token, Cloudflare credentials):\n\n   ```sh\n   deployer setup\n   ```\n\n4. **Edit `docker-compose.yml`** in this repo and replace `deployer-demo.example.com` in the Traefik `Host(...)` label with the domain you actually want to deploy to. Commit and push.\n\n5. **Deploy:**\n\n   ```sh\n   deployer deploy --repo \u003cyour-gh-user\u003e/deployer-demo --domain \u003cyour-domain\u003e\n   ```\n\n   The `--domain` value must match the `Host(...)` label in `docker-compose.yml`.\n\nExpected output is the six-phase summary (connect → sync → validate → containers → DNS → Zero Trust). Once it finishes, the page at your domain is the landing page in `src/routes/+page.svelte`.\n\n## What's wired up for deployer\n\n- **`svelte.config.js`** — uses `@sveltejs/adapter-node` so the build produces a runnable Node server at `build/index.js`.\n- **`Dockerfile`** — multi-stage: builds with bun, runs with `node:22-slim` on `PORT=8080`, `HOST=0.0.0.0`.\n- **`docker-compose.yml`** — service `app`, joins external `web` network, declares the Traefik labels deployer expects (`Host(...)` rule, `websecure` entrypoint, `le` cert resolver, port `8080`).\n- **`.dockerignore`** — keeps the build context small.\n\nIf you renamed `traefik_network` in your `~/.deployer.yml`, update both occurrences of `web` in `docker-compose.yml` to match.\n\n## Local development\n\n```sh\nbun install\nbun run dev      # http://localhost:5173\nbun run build    # produces ./build\nbun run preview  # serves the production build\nbun run check    # svelte-check, 0 errors expected\n```\n\nTo smoke-test the production server the way the container will run it:\n\n```sh\nbun run build\nPORT=8080 HOST=127.0.0.1 node build\n# → Listening on http://127.0.0.1:8080\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhra42%2Fdeployer-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhra42%2Fdeployer-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhra42%2Fdeployer-demo/lists"}