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

More devserver options #2813

Closed
rondonjon opened this issue Oct 27, 2021 · 2 comments
Closed

More devserver options #2813

rondonjon opened this issue Oct 27, 2021 · 2 comments

Comments

@rondonjon
Copy link

rondonjon commented Oct 27, 2021

Please add the following development config options:

  • option to pause the Tauri build (or at least its console output) while the dev server is spinning up; both are writing to the console while building, and I am often missing the dev server's error in the Tauri log.

  • option to terminate the Tauri build if a devserver command was configured and if that command fails with a non-zero exit code; current behavior is that Tauri keeps building and displays a blank page

  • option to force-terminate the devserver when Tauri is terminated (related: beforeDevCommand is not killed on app exit #2794)

@amrbashir
Copy link
Member

  1. we can't know when the devServer is finished, in fact we don't know if it is a server or not, we are only executing the beforeDevCommamd you specified in tauri.conf.json. The solution is to run your devServer in a separate terminal.

  2. Good suggestion, we will definitely consider that.

  3. This issue has been brought up alot but there is not much that we can do tbh, we are only spawning a process for beforeDevCommand and that command can other processes that we can't control nor can we even know about them and it is the job of the process who spawned them to clean them as it exists. We will definitely look into improving it but no guarantees.

@amrbashir
Copy link
Member

I am gonna go ahead and close this but feel free to open another issue for No.2

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

No branches or pull requests

2 participants