I would like to add a task to my Gruntfile in order to start my Express server instead of the default server. I tried to had a task and require("server.js") but I think this isn't the right way to do that: running "grunt mytask" there are no errors but the command return immediately..and the express server isn't listening Thank you for your help !
you could use grunt-shell to execute commands in the terminal:
for instance if you have a app.js file that configures your express app you can start it from the command line with 'node app.js'
to configure with grunt shell you'd use something like:
grunt.initConfig({
shell: {
launchExpress: {
options: {
stdout: true
},
command: 'node app.js'
}
}
});