You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may be prudent to move from the current run.sh file to a run.py similar to this one written by @fekad.
This will make it easier to develop in a Windows environment as well, but mostly simply remove any obvious OS environment dependency, although it may still be present indirectly.
The text was updated successfully, but these errors were encountered:
It could be useful for debugging in PyCharm (which available for any OS) as well. As far as I know, you cannot activate the visual debuger mode when you run it from the bash.
CasperWA
changed the title
Move run.sh to a python file for be environment-agnostic
Move run.sh to a python file to be environment-agnostic
Dec 2, 2019
If this is done, one should be aware that the location of local_*openapi.json files will most likely change. One should take care not to change the default location (which is the package root).
Adding a __name__ = '__main__' section to main.py, importing unicorn within the if-sentence will support debugging and development in a broader sense, while not disturbing other development frameworks.
It may be prudent to move from the current
run.sh
file to arun.py
similar to this one written by @fekad.This will make it easier to develop in a Windows environment as well, but mostly simply remove any obvious OS environment dependency, although it may still be present indirectly.
The text was updated successfully, but these errors were encountered: