[英]Gulp connect gives me cannot GET/ with angular app
I am trying to setup a simple boilerplate wth gulp, browserify,angular and node.js However, I get error of cannot GET
. 我正在尝试设置一个简单的样板,包括gulp,browserify,angular和node.js。但是,我遇到
cannot GET
获取的错误。
Here's boilerplate url on github https://github.com/kushalmahajan/angular_boilerplate.git 这是github上的样板URL https://github.com/kushalmahajan/angular_boilerplate.git
You need to change the root
directory inside of your connect
task to serve files from app/
. 您需要在
connect
任务中更改root
目录,以提供来自app/
文件。
gulp.task('connect', function(){
connect.server({
root: 'app',
port: 4000
})
})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.