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

@Dmitry Nikitenko is correct, you don't need Apache. You need to change your Gruntfile

The hostname option is only used to specify where livereload should connect to. This doesn't change the default url which is opened when you start Grunt. What you need is to specify a URL for open in your livereload options. For example:

  livereload: {
    options: {
      open: 'http://myapp.dev:9000',
      base: [
        '.tmp',
        '<%= yeoman.app %>'
      ]
    }

You don't need Apache here. Connect is a web server, so it already serves your static files. Try to disable Apache and change your hostname option to localhost.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!