Compare commits
2
Commits
0538038deb
...
940a599515
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
940a599515 | ||
|
|
e38ca1bf26 |
No files matched your search
@@ -15,4 +15,4 @@ node_modules/
|
||||
/build/
|
||||
{% endif %}
|
||||
# Local playground
|
||||
t/
|
||||
/t/
|
||||
@@ -13,4 +13,6 @@ make recreate
|
||||
|
||||
To deploy, `git pull && make deploy`. It runs `make pre-deploy` in every part, which builds images only when their inputs changed and applies migrations, then `docker compose up -d`, then `make post-deploy`, which restarts the services whose mounted code changed. A deploy system with its own `up` step calls the two hooks around it. What was built and started is remembered as `refs/deploy/*` in the clone.
|
||||
|
||||
In the fleet, production is deployed from `infra/komodo` instead (git mode of Komodo, see `docs/architecture.md` there): Komodo clones this repo, and a layer plus `deploy.sh` in the stack's directory tag images by the hash of what they bake in, write `.env` from sops and run migrations before the code. The repo only has to stay a plain recipe: images built from `build:` in compose, migrations as the `migrator` service when there is a database, `caddy/site.caddy`. `make deploy` and `refs/deploy/*` are for a checkout deployed by hand.
|
||||
|
||||
`make fmt`, `make check` and `make build` run in every part. Part-specific targets live in the part's own Makefile: `make -C {{ parts[0] }} ...`.
|
||||
Reference in new issue
Block a user