I\'m using a Github post-recieve hook to run a bash file that pulls both my repos.
#!/bin/sh cd ~/public_html/repo_static env -i /usr/bin/git pull origin master
If you'd like to specify the default answer, you could also just pipe it into the command:
$ echo yes | python manage.py collectstatic
or
$ echo no | python manage.py collectstatic
python manage.py collectstatic --noinput