Skip to content
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

Running in PyCharm #232

Open
JSonnabend opened this issue Feb 25, 2022 · 1 comment
Open

Running in PyCharm #232

JSonnabend opened this issue Feb 25, 2022 · 1 comment

Comments

@JSonnabend
Copy link

JSonnabend commented Feb 25, 2022

Bear with me here. I'm not new to coding but new to Python/PyCharm.

I have supysonic installed via pip and it's open in PyCharm. I can't figure out get the application running in the PyCharm debugger.

EDIT

OK, I added a module with the following, and a I'm running that.

from web import create_application

if __name__ == '__main__':
    app = create_application()
    app.run()
@spl0k
Copy link
Owner

spl0k commented Feb 25, 2022

Hello again.
I have never used PyCharm, so I couldn't help you there. But yeah this should be sufficient to run the web server, this is basically what the flask run command does.
There is another entry point for the deamon. It is started by invoking the supysonic.daemon module. I don't know for PyCharm but on the command-line it would be started this way:

$ python -m supysonic.daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants