Skip to content

Commit

Permalink
Stopping express during build tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lkrnac committed Apr 25, 2014
1 parent 595383f commit 533953e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,18 @@ module.exports = function (grunt) {

grunt.registerTask('serve', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'express:prod', 'express-keepalive']);
return grunt.task.run([
'build',
'express:prod',
'express-keepalive',
]);
}

grunt.task.run([
'clean:server',
'express:dev',
'watch'
'watch',
'express:dev:stop',
]);
});

Expand Down Expand Up @@ -255,7 +260,8 @@ module.exports = function (grunt) {
grunt.registerTask('build', [
'clean:dist',
'copy:dist',
//'express:prod'
'express:prod',
'express:prod:stop'
]);

grunt.registerTask('default', [
Expand Down

0 comments on commit 533953e

Please sign in to comment.