Milano
Milano

Reputation: 18745

Run two scripts/configurations in one click

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 every time I'm working on this project.

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

enter image description here

I want to automatically run/stop this command:

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

enter image description here

Upvotes: 2

Views: 1029

Answers (1)

Rach Sharp
Rach Sharp

Reputation: 2444

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.

example compound configuration

Upvotes: 5

Related Questions