I am relatively new to Gruntjs, but I've managed to get everything running automatically, except my localhost.
How can I make Grunt run python manage.py runserver 0.0.0.0:8000 --insecure
?
You can use grunt-shell https://github.com/sindresorhus/grunt-shell
Try something like this:
grunt.initConfig({
shell: {
pythonServer: {
options: {
stdout: true
},
command: 'python manage.py runserver 0.0.0.0:8000 --insecure'
}
}
});
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['shell:pythonServer']);
I hope it helps :) Cheers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With