简体   繁体   English

Gulp Connect给我无法使用Angular App获取/

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM