Skip to content

[feature] fig.yml support multy command #429

@pahaz

Description

@pahaz

sometimes I want doing somthing like this

 command:
   - "python manage.py collectstatic --noinput"
   - "python manage.py syncdb --noinput"
   - "echo 'Hi'"
   - "gunicorn -b 0.0.0.0:8000 _project_.wsgi --log-level debug --log-file -"

What the problem.
I can't add manage.py collectstatic to Dockerfile because I use volume .:/code wich is not supported for Dockerfile.

Now I should usr fig run command but I want use simpe fig up.

Other solution may be something like this:

 hook_after_build:
   - "python manage.py collectstatic --noinput"
   - "python manage.py syncdb --noinput"
   - "echo 'Hi'"
 command:
   - "gunicorn -b 0.0.0.0:8000 _project_.wsgi --log-level debug --log-file -"

what do you think about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions