-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Enable to dev config to be overriden from Custom Config class instead of relying on command line arguments #866
Comments
@LohithBlaze , you don't need the dev code to be removed. You can just use |
Hey @LohithBlaze 👋 As discussed on Discord, this is an interesting suggestion. I will be keen on implementing this feature. 😄 |
@sansyrox hi, sansyrox , I have a problem, Dev mode does not support the use of Python Wrapper, but I want to start the service through Pycharm's debug mode, What to do? This way I don't need to breaking point debugging by running app.py through pycharm when I need to debug, which is currently not supported by the robyn cli |
Hey @i1619khz 👋 I don't use PyCharm tbh. Maybe @VishnuSanal can help |
Hey @i1619khz , there's an option to set CLI flags in run configurations menu, AFAIK. Try this https://www.jetbrains.com/help/pycharm/run-debug-configuration-python.html please let me know if your still stuck. :) |
@VishnuSanal @sansyrox Thanks for your answer, I mainly want to know how to debug a service starting from cli
Don't quite understand how to configure |
@VishnuSanal I know, but it says :Dev mode is not supported in the python wrapper. Please use the Robyn CLI. e.g. python3 -m robyn app.py --dev, What I want to know is how to start in pycharm debug mode with dev enabled |
@i1619khz got you, please try the following: |
@VishnuSanal Thank you so much |
Bug Description
in init.py in robyn, there is specific code to exit from the program if dev mode is overriden from a Config class, need this to removed for enabling dynamic development or production mode deployments.
Steps to Reproduce
class DevConfig(BaseRobynConfig):
"""Development Configuration"""
Creating an DevConfig object result in program being exited due to the above code.
Your operating system
Linux
Your Python version (
python --version
)3.9
Your Robyn version
latest
Additional Info
No response
The text was updated successfully, but these errors were encountered: