Express 表示保持不变。。活着
我的Express 表示保持不变。。活着,express,gruntjs,Express,Gruntjs,我的grunt任务看起来像: grunt.registerTask "default", [ "clean:dist" # "useminPrepare" "copy:dist" "ngmin" # "jshint" # "coffee_jshint" "usemin" "express" "express-keepalive" ] 它执行任务,包括运行“express keepalive”任务,但它不保持express运
grunt
任务看起来像:
grunt.registerTask "default", [
"clean:dist"
# "useminPrepare"
"copy:dist"
"ngmin"
# "jshint"
# "coffee_jshint"
"usemin"
"express"
"express-keepalive"
]
它执行任务,包括运行“express keepalive”任务
,但它不保持express运行,甚至不启动我认为您必须将“grunt contrib watch”作为一个单独的任务使用——这使grunt保持运行,从而使服务器保持运行
我对此不确定——我自己也遇到了同样的问题,这就是我如何让它继续运行的原因。如果有更好的答案,我也想知道