supysonic
supysonic copied to clipboard
Running in PyCharm
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()
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