#Automatic shutdown of the server from `run dev`

3 messages · Page 1 of 1 (latest)

manic bridge
#

Hello,
we are moving out site to Starlight, and are attempting to integrate it into a gradle dev environment using the plugin 'com.github.node-gradle.node'.

So far, everything works well, except that cancelling the gradle task does not seem to shutdown the dev server (npm run dev). Is there a way to ensure that the server shuts down after a time? We have it automatically open the browser via --open, so shutting down when the browser tab is closed would also be nice

This is a (bug)[https://github.com/node-gradle/gradle-node-plugin/issues/65] with the plugin, I'm just hoping there's a simple workaround.

lilac elk
#

No there isn't such an option, sorry about that

manic bridge
#

alright, thanks. I'll have to see what else I can do to work around it