grunt-contrib-connect

Grunt server does not use virtual host name for my app..vhost and httpd are set up but grunt is not using them

只愿长相守 提交于 2019-11-30 20:54:53
So I am trying to setup my app with a name rather than using 127 0 0 1. Every single time I run grunt, my address is http://127.0.0.1:9000/#/ ... I've tried many things and nothing is working...I always get redirected to that place. Here are my files: httpd.conf <VirtualHost *:80> DocumentRoot "/Users/myusername/Sites/MyApp/app" ServerName myapp.dev <Directory "/Users/myusername/Sites/MyApp/app"> Options FollowSymLinks MultiViews Indexes AllowOverride All Order allow,deny Deny from none Allow from all </Directory> </VirtualHost> hosts 127.0.0.1 myapp.dev ::1 myapp.dev Gruntfile.js // Generated

Warning: connect.static is not a function Use --force to continue

无人久伴 提交于 2019-11-30 17:15:36
I am using YO lessapp project, "grunt-contrib-connect" helps me to start a node js server on 9000 port. Whenever I run grunt serve (start the server) the service is aborted due to the below warning. Running "connect:livereload" (connect) task Warning: connect.static is not a function Use --force to continue. The exact error took place in the below function in Gruntfile.js livereload: { options: { middleware: function(connect) { return [ connect.static('.tmp'), connect().use('/bower_components', connect.static('./bower_components')), connect.static(config.app) ]; } } }, I have installed npm

Warning: connect.static is not a function Use --force to continue

半腔热情 提交于 2019-11-30 14:30:57
问题 I am using YO lessapp project, "grunt-contrib-connect" helps me to start a node js server on 9000 port. Whenever I run grunt serve (start the server) the service is aborted due to the below warning. Running "connect:livereload" (connect) task Warning: connect.static is not a function Use --force to continue. The exact error took place in the below function in Gruntfile.js livereload: { options: { middleware: function(connect) { return [ connect.static('.tmp'), connect().use('/bower_components