Prefer server bin file.

main
Joshua Potter 2024-04-12 13:30:06 -06:00
parent 78f6677811
commit f7b1e01ee9
2 changed files with 7 additions and 7 deletions

View File

@ -42,9 +42,9 @@ in
Type = "exec"; Type = "exec";
EnvironmentFile = "/run/secrets/BOARDWISE_SECRET_KEY_BASE"; EnvironmentFile = "/run/secrets/BOARDWISE_SECRET_KEY_BASE";
ExecStartPre = "${boardwise}/bin/migrate"; ExecStartPre = "${boardwise}/bin/migrate";
ExecStart = "${boardwise}/bin/boardwise start"; ExecStart = "${boardwise}/bin/server start";
ExecStop = "${boardwise}/bin/reconn stop"; ExecStop = "${boardwise}/bin/server stop";
ExecReload = "${boardwise}/bin/reconn restart"; ExecReload = "${boardwise}/bin/server restart";
Restart = "on-failure"; Restart = "on-failure";
}; };
}; };

View File

@ -1,7 +1,7 @@
{ system, pkgs, lib, ... }: { system, pkgs, lib, ... }:
let let
reconn = ( reconn = (
builtins.getFlake "git+https://git.jrpotter.com/r/reconn?rev=74cb0be878441c4eafcfd2b2c2c926fe87ea8a30" builtins.getFlake "git+ssh://forgejo@git.jrpotter.com/r/reconn?rev=74cb0be878441c4eafcfd2b2c2c926fe87ea8a30"
).packages.${system}.app; ).packages.${system}.app;
in in
{ {
@ -39,9 +39,9 @@ in
Type = "exec"; Type = "exec";
EnvironmentFile = "/run/secrets/RECONN_SECRET_KEY_BASE"; EnvironmentFile = "/run/secrets/RECONN_SECRET_KEY_BASE";
ExecStartPre = "${reconn}/bin/migrate"; ExecStartPre = "${reconn}/bin/migrate";
ExecStart = "${reconn}/bin/reconn start"; ExecStart = "${reconn}/bin/server start";
ExecStop = "${reconn}/bin/reconn stop"; ExecStop = "${reconn}/bin/server stop";
ExecReload = "${reconn}/bin/reconn restart"; ExecReload = "${reconn}/bin/server restart";
Restart = "on-failure"; Restart = "on-failure";
}; };
}; };