Run some other commands when the current command was killed/stoped #29287
Unanswered
kasir-barati
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, nowadays I am getting tired of stopping my containers after the I terminate my
nx serve appname
withctrl+c
. I.e. each time I have to do a manual stop:nx compose:down appname -v
which is kinda tedious. So I was wondering how can I do these things with Nx and whether they are possible:nx whatever appname
) I could define a cleanup script to be executed in myproject.json
. Something likedependsOn
with one crucial difference and that is that it should run after the command was terminated due to any reason (ctrl+c
,process stopped
, etc).nx compose:up appname
whichserve
scriptdependsOn
it.Beta Was this translation helpful? Give feedback.
All reactions