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

Restart server on build changes #11

Open
damien-roche opened this issue Jan 27, 2020 · 1 comment
Open

Restart server on build changes #11

damien-roche opened this issue Jan 27, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@damien-roche
Copy link

damien-roche commented Jan 27, 2020

I have setup a project using alpas init myapp.web.

I have then successfully started the server using alpas serve (also tried alpas watch).

I then change the default WelcomeController but changes are not picked up even with a separate gradle build --continuous (which does pick up changes and recompile).

Let me know if you need further info.

What I would expect is the server to restart when new changes are detected in build, ideally to not restart unnecessarily when, for example, asset changes are detected.

@ashokgelal
Copy link
Collaborator

ashokgelal commented Jan 28, 2020

I played with this for couple of hours and unfortunately, couldn't make it to work. Like you said, it re-compiles just fine but the server restart isn't happening. Looking around it looks like a common issue. I'll keep digging into it further as this annoys me too but I can't promise to fix this right away. Eventually I'd like to actually write a plugin for https://github.com/HotswapProjects/HotswapAgent, which may be better anyway.

You probably already know this but you don't need to restart the server for assets changes. Here's the doc that explains it what you have to do: https://alpas.dev/docs/mixing-assets#watching-changes-and-auto-reloading

@ashokgelal ashokgelal added the help wanted Extra attention is needed label Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants