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";
EnvironmentFile = "/run/secrets/BOARDWISE_SECRET_KEY_BASE";
ExecStartPre = "${boardwise}/bin/migrate";
ExecStart = "${boardwise}/bin/boardwise start";
ExecStop = "${boardwise}/bin/reconn stop";
ExecReload = "${boardwise}/bin/reconn restart";
ExecStart = "${boardwise}/bin/server start";
ExecStop = "${boardwise}/bin/server stop";
ExecReload = "${boardwise}/bin/server restart";
Restart = "on-failure";
};
};

View File

@ -1,7 +1,7 @@
{ system, pkgs, lib, ... }:
let
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;
in
{
@ -39,9 +39,9 @@ in
Type = "exec";
EnvironmentFile = "/run/secrets/RECONN_SECRET_KEY_BASE";
ExecStartPre = "${reconn}/bin/migrate";
ExecStart = "${reconn}/bin/reconn start";
ExecStop = "${reconn}/bin/reconn stop";
ExecReload = "${reconn}/bin/reconn restart";
ExecStart = "${reconn}/bin/server start";
ExecStop = "${reconn}/bin/server stop";
ExecReload = "${reconn}/bin/server restart";
Restart = "on-failure";
};
};