Fix start argument by default issue

This commit is contained in:
ryan 2025-08-09 19:26:39 -07:00
parent 1b58dfad31
commit 988a38b1f9
2 changed files with 7 additions and 2 deletions

View File

@ -71,7 +71,7 @@
apps = { apps = {
default = { default = {
type = "app"; type = "app";
program = "${self.packages.${system}.default}/bin/systant start"; program = "${self.packages.${system}.default}/bin/systant";
}; };
}; };
} }

View File

@ -19,7 +19,12 @@ beamPackages.mixRelease rec {
export RELEASE_DISTRIBUTION=none export RELEASE_DISTRIBUTION=none
export RELEASE_NODE=nonode@nohost export RELEASE_NODE=nonode@nohost
export RELEASE_COOKIE=dummy_cookie_for_single_node export RELEASE_COOKIE=dummy_cookie_for_single_node
exec "$out/bin/.systant-wrapped" "\$@" # Default to "start" command if no arguments provided
if [ \$# -eq 0 ]; then
exec "$out/bin/.systant-wrapped" start
else
exec "$out/bin/.systant-wrapped" "\$@"
fi
EOF EOF
chmod +x $out/bin/systant chmod +x $out/bin/systant
''; '';