supysonic icon indicating copy to clipboard operation
supysonic copied to clipboard

Running in PyCharm

Open JSonnabend opened this issue 2 years ago • 1 comments

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()

JSonnabend avatar Feb 25 '22 14:02 JSonnabend

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

spl0k avatar Feb 25 '22 18:02 spl0k