WIP: Draft: Resolve "Do not restart vite serve on every uwsgi reload" #3085

Draft
hansegucker wants to merge 1 commit from 850-do-not-restart-vite-serve-on-every-uwsgi-reload into master
Owner

Closes #850

Closes #850
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>8ea45643 - Use smart daemon for Vite</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/1440/diffs?diff_id=41142&start_sha=e728a80ca5fac5c15c51de464affc79a6320122f)
Author
Owner

Problem: This works perfectly but stopping the server is a problem. uWSGI sends a termination signal to the outer Python process, but the inner Node process isn't affected by this signal.

Problem: This works perfectly but stopping the server is a problem. uWSGI sends a termination signal to the outer Python process, but the inner Node process isn't affected by this signal.
Member

Possible fix: signal handler in django yarnpkg that will automatically kill the process when SIGTERM is received. Only problem: this will not work with SIGKILL

Current behaviour:
Bildschirmfoto_vom_2024-03-29_22-05-19

With signal:
Bildschirmfoto_vom_2024-03-29_22-16-44

(yes, I know, a video would demonstrate this better)

Possible fix: signal handler in django yarnpkg that will automatically kill the process when `SIGTERM` is received. Only problem: this will not work with `SIGKILL` Current behaviour: ![Bildschirmfoto_vom_2024-03-29_22-05-19](/uploads/d8e2c28113606c66d630644dc2d47a8f/Bildschirmfoto_vom_2024-03-29_22-05-19.png) With signal: ![Bildschirmfoto_vom_2024-03-29_22-16-44](/uploads/ab7a0dd2fc6a9c9e43350c487299d116/Bildschirmfoto_vom_2024-03-29_22-16-44.png) (yes, I know, a video would demonstrate this better)
This pull request has changes conflicting with the target branch.
  • aleksis/core/settings.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 850-do-not-restart-vite-serve-on-every-uwsgi-reload:850-do-not-restart-vite-serve-on-every-uwsgi-reload
git switch 850-do-not-restart-vite-serve-on-every-uwsgi-reload

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff 850-do-not-restart-vite-serve-on-every-uwsgi-reload
git switch 850-do-not-restart-vite-serve-on-every-uwsgi-reload
git rebase master
git switch master
git merge --ff-only 850-do-not-restart-vite-serve-on-every-uwsgi-reload
git switch 850-do-not-restart-vite-serve-on-every-uwsgi-reload
git rebase master
git switch master
git merge --no-ff 850-do-not-restart-vite-serve-on-every-uwsgi-reload
git switch master
git merge --squash 850-do-not-restart-vite-serve-on-every-uwsgi-reload
git switch master
git merge --ff-only 850-do-not-restart-vite-serve-on-every-uwsgi-reload
git switch master
git merge 850-do-not-restart-vite-serve-on-every-uwsgi-reload
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!3085
No description provided.