0

I wrote "docker-compose.yml", and I want to execute two commands:
uwsgi -i /code/uwsgi.ini and python3.6 /code/manage.py collectstatic

I tried to use && to connect the two command, but it failed, what can I do?

1 Answer 1

1

You can execute multiple commands using bash -c:

command: >
    bash -c "uwsgi -i /code/uwsgi.ini
    && python3.6 /code/manage.py collectstatic"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.