mirror of
https://github.com/motioneye-project/motioneye.git
synced 2026-03-02 22:57:06 -05:00
Development environment / live reload #2476
Labels
No labels
Android app
Arch Linux
CI/CD
CSS
FreeBSD
HTML/HTTP
Home Assistant addon
JavaScript
Python
Raspberry Pi
Stale No Activity 60 Days
bug
code format
dependencies
dev branch
docker
documentation
duplicate
enhancement
feature
help wanted
i18n/l10n
invalid
legacy motionEye
meta
motion
motionEyeOS
notourproblem
python update
question
question
security
troubleshooting
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/motioneye#2476
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sevimuelli on GitHub (Dec 27, 2023).
Hi
There is not much documentation concerning development of motionEye. What is the best way to run motionEye for development? Some way to have the project open in VS Code and continuously update the changes. Ideally, I could run it inside a container. I saw that inside server.py, when starting the Tornado webserver, there is an argument "debug", which is kinda doing this. But there is no way to set this under normal operation.
What is the normal approach the developer here use? Any help is appreciated.
@MichaIng commented on GitHub (Dec 27, 2023):
Python does not seem to have a native autoreload feature, which would be required here.
I tend to just restart motionEye when testing changes:
@zagrim commented on GitHub (Feb 3, 2024):
I tend to use the following manual "reload" cycle (simplified version here, as if not using Python venv):
Rebuild:
rm -r build/ motioneye.egg-info/; python3 -m pip install .Start:
~/.local/bin/meyectl startserver -c path/to/my/development/configTerminate server and repeat after changes to code.
@Omumarvaishya commented on GitHub (Oct 7, 2024):
i have facing the same issue could you please mention some steps to establish dev environment?