-
Notifications
You must be signed in to change notification settings - Fork 68
Debugging options #1157
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: dev
Are you sure you want to change the base?
Debugging options #1157
Conversation
…ded start.sh script to run epidata in 'debug' mode
Kudos, SonarCloud Quality Gate passed! |
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.
good stuff!
dev/local/Makefile
Outdated
@# see https://github.com/tiangolo/meinheld-gunicorn-docker#module_name | ||
@docker run --rm -p 127.0.0.1:5000:5000 -p 127.0.0.1:5678:5678 \ | ||
$(M1) \ | ||
--mount type=bind,source=$(CWD)repos/delphi/delphi-epidata/devops/start.sh,target=/start.sh,readonly \ |
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.
--mount type=bind,source=$(CWD)repos/delphi/delphi-epidata/devops/start.sh,target=/start.sh,readonly \ | |
`# mount the debuging start script into the container so the webserver uses it ` \ | |
--mount type=bind,source=$(CWD)repos/delphi/delphi-epidata/devops/start_vscodedebug.sh,target=/start.sh,readonly \ |
to support renaming the local start.sh
file and make a note so its clearer as to whats happening
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.
actually, im not sure that bash "trick" i used to add an in-line comment will work inside the makefile...
dev/local/Makefile
Outdated
.PHONY=web_debug | ||
web_debug: |
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.
.PHONY=web_debug | |
web_debug: | |
.PHONY=web_vscodedebug | |
web_vscodedebug: |
rename so its clear that this is specifically for vscode
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.
you should also include a link to your presentation here
dev/local/Makefile
Outdated
.PHONY=debug | ||
debug: db web_debug py |
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.
.PHONY=debug | |
debug: db web_debug py | |
.PHONY=vscodedebug | |
debug: db web_vscodedebug py |
devops/start.sh
Outdated
@@ -0,0 +1,18 @@ | |||
#! /usr/bin/env sh |
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.
rename this file to start_vscodedebug.sh
so its not mistaken for a regular 'start' script
Kudos, SonarCloud Quality Gate passed! |
|
Summary:
Added possibility to debug epidata using VS Code Dev Containers extension.
Guide can be found: here
Prerequisites:
dev