iz_old
Clone
https://git.tahinli.com/Tahinli/iz_old.git
0 watching0 forksRustGPL-3.02.2 MiB4c154b4Tahinli2 months ago301 commits
| 1 | # The systemd user unit iz runs under on the server. The deploy workflow |
| 2 | # installs this file as ~/.config/systemd/user/iz.service on every release, |
| 3 | # reloads the manager, enables the unit and restarts it, so a freshly |
| 4 | # provisioned box needs nothing but the SSH user, the deploy directory and |
| 5 | # `loginctl enable-linger` (once, so the unit outlives the login). |
| 6 | # |
| 7 | # The working directory is the deploy path itself, not the release: the |
| 8 | # binary reads config/iz.toml, the database and the key relative to it, |
| 9 | # and only current/ is swapped by a deploy. |
| 10 | [Unit] |
| 11 | Description=iz |
| 12 | After=network-online.target |
| 13 | |
| 14 | [Service] |
| 15 | WorkingDirectory=%h/iz |
| 16 | ExecStart=%h/iz/current/iz-web |
| 17 | Restart=on-failure |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=default.target |