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']);
Hope this helps :) Greetings
source
share