I'm tring to make grunt exec
perform django
collectstatic
command after building the statics. So, in my Gruntfile.js I have:
grunt.initConfig({
...
exec: {
collectstatic: {
cwd: '../../',
cmd: 'python manage.py collectstatic --clear'
}
}
...
}
When I try to execute this command with grunt exec:collectstatic --verbose
, it doesn't curse but freezes with the following output:
Running "exec:collectstatic" (exec) task
Verifying property exec.collectstatic exists in config...OK
File: [no files]
python manage.py collectstatic --clear
Expecting exit code 0
Looks as if it weren't receiving exit code from django
. I checked, if django returns correct status code, and it seems to do so:
$ python manage.py collectstatic --clear
$ echo $?
0
What's wrong?