Skip to content
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

Possibility to run custom scripts on termination/restart #328

Open
paramsiddharth opened this issue Jan 26, 2022 · 0 comments
Open

Possibility to run custom scripts on termination/restart #328

paramsiddharth opened this issue Jan 26, 2022 · 0 comments

Comments

@paramsiddharth
Copy link

paramsiddharth commented Jan 26, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant