PyCharm - Run two scripts/configurations in one click

寵の児 提交于 2019-12-08 05:30:16

问题


I'm working on a Django project and I have classic configuration so I just click on "run" and development server is running. But I need to run celery from console everytime I'm working on this project.

Is it possible to add the celery command so both are started just using one click?

I want to automatically run/stop this command:

celery -A myproject.celery worker -l info --beat


回答1:


The "Compound" Run Configuration can start a group of other Run Configurations in parallel.

You will need the BashSupport plugin in order to use a Bash script as a run configuration. Then, with your command celery -A myproject.celery worker -l info --beat in celery.sh, you can create a compound run configuration , e.g.



来源:https://stackoverflow.com/questions/55687239/pycharm-run-two-scripts-configurations-in-one-click

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!