Development environment / live reload #2476

Open
opened 2026-02-28 01:12:50 -05:00 by deekerman · 3 comments
Owner

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.

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.
Author
Owner

@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:

systemctl restart motioneye
@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: ```sh systemctl restart motioneye ```
Author
Owner

@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/config
Terminate server and repeat after changes to code.

@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/config` Terminate server and repeat after changes to code.
Author
Owner

@Omumarvaishya commented on GitHub (Oct 7, 2024):

i have facing the same issue could you please mention some steps to establish dev environment?

@Omumarvaishya commented on GitHub (Oct 7, 2024): i have facing the same issue could you please mention some steps to establish dev environment?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/motioneye#2476
No description provided.