You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Possibility to run custom scripts on termination/restart
Similar to #102, I wish to have a function run every time the development server is restarted or stopped. Is there currently a way to do that? If yes, please mention.
I understand that config/bootstrap.js can export a function to run at startup. I wish to know if there's something that runs on termination/restart too.
Edit (Still not resolved)
I realize that we have lifecycle functions register, bootstrap, and destroy. I have been able to successfully override the bootstrap function by exporting a function via config/bootstrap.js, but failed to do the same for destroy by exporting a function from config/destroy.js. Where am I going wrong?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Possibility to run custom scripts on termination/restart
Similar to #102, I wish to have a function run every time the development server is restarted or stopped. Is there currently a way to do that? If yes, please mention.
I understand that
config/bootstrap.js
can export a function to run at startup. I wish to know if there's something that runs on termination/restart too.Edit (Still not resolved)
I realize that we have lifecycle functions
register
,bootstrap
, anddestroy
. I have been able to successfully override the bootstrap function by exporting a function viaconfig/bootstrap.js
, but failed to do the same fordestroy
by exporting a function fromconfig/destroy.js
. Where am I going wrong?The text was updated successfully, but these errors were encountered: