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

Check to see if a Viewer is running and skip the build check #74

Merged
merged 2 commits into from
Aug 6, 2023

Conversation

jonahbedouch
Copy link
Contributor

This PR adds a line to the Vite config that sets the viewer's process name to "Viser Viewer", and adds a function that uses psutil to check if "Viser Viewer" exists in the process list. If it does and any build exists at all, it skips the build check.

This is mostly to speed up development, since it will stop the client from rebuilding every time an example is restarted while active changes are being made.

If no dir exists at all, the program will crash since it still tries to host one
@brentyi brentyi merged commit 5e35930 into main Aug 6, 2023
11 checks passed
@brentyi brentyi deleted the jonah/build_skip branch August 6, 2023 05:27
yzslab pushed a commit to yzslab/viser that referenced this pull request Oct 20, 2024
…dio-project#74)

* Add a check to see if a Viser viewer is already running on your machine. If so, skip building on start.

* Swap build dir check and process check

If no dir exists at all, the program will crash since it still tries to host one
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

Successfully merging this pull request may close these issues.

2 participants