-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing process exits process-compose immediately #1037
Comments
You can set
This can be solved by setting a restart strategy, combined with the above: processes = {
frontend = {
exec = "pnpm dev --port 3000";
process-compose = {
working_dir = "page";
availability.restart = "always";
};
};
}; |
Thx, this kinda works as a workaround: frontend = {
exec = "echo fail; false";
process-compose = {
availability.restart = "always";
};
}; But I feel the default of a silent exit in case of error is a bit awkward - that's why I posted this issue 🤔 And for the working dir, while this works when I'm in the root directory: frontend = {
exec = "pnpm run dev";
process-compose = {
working_dir = "frontend";
};
}; When I'm in the subdirectory, the command fails: ❯ devenv up page
path '/home/manu/dev/levin-shop/frontend' does not contain a 'flake.nix', searching up And in
|
Set your working directory in the root devenv.nix and other options in sub devenv.nix. The root nix will merge the options ./devenv.nix ./frontend/devenv.nix |
If I run
devenv up frontend
but have a command in theexec
that fails, e.g.:If I run this while in the subdirectory
page/
:The text was updated successfully, but these errors were encountered: