-
Notifications
You must be signed in to change notification settings - Fork 10
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
dev(debug): complete dev environment to debug/code easily #68
dev(debug): complete dev environment to debug/code easily #68
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Just a few nitpicks.
Co-authored-by: Anonymoussaurus <50231698+AnonymousWP@users.noreply.github.com>
If there's an issue of this feature, then please link it. |
PR rebased on latest master version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two more backticks at line 20. 🙂 https://github.com/yarysp/rengine-ng/blob/debug-environment/install.sh#L20
To help develop reNgine I've made 2 environments :
This docker compose set up all the things to activate debug tools : Django debug toolbar, remote debug (disabled by default) via VSCode/Python Debugger extensions, more debug information for Celery in make logs
It uses Django development server
If you activate Remote debug, there are 2 behaviors, depending on whether you are debugging the webUI or the tasks
And when you launch task from the webUI, it hangs on the first line of the InitiateScan or InitiateSubscan tasks and wait for the VSCode debugger to attach to 5679 port to step debug inside the task
This one is the production environment, it uses gunicorn as web server instead of the Django development server
I've added the necessary command in MakeFile to easily startup dev or prod environment
To start dev
To start prod
To restart in dev from prod
To restart in prod from dev