Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gruntjs Grunt连接代理,处理子域处理_Gruntjs_Grunt Contrib Connect - Fatal编程技术网

Gruntjs Grunt连接代理,处理子域处理

Gruntjs Grunt连接代理,处理子域处理,gruntjs,grunt-contrib-connect,Gruntjs,Grunt Contrib Connect,我有rails应用程序,它位于127.0.0.1:8080。 此外,我的主机文件中还写入了domainapp.dev app.dev 127.0.0.1 my.app.dev 127.0.0.1 我想按如下方式配置grunt: 对app.dev的所有请求都重定向到rails app127.0.0.1:8080 对my.app.dev的所有请求处理连接服务器 是否可以通过grunt和grunt连接代理执行此操作?可能重复的

我有rails应用程序,它位于127.0.0.1:8080。 此外,我的主机文件中还写入了domainapp.dev

app.dev     127.0.0.1
my.app.dev  127.0.0.1
我想按如下方式配置grunt:

  • 对app.dev的所有请求都重定向到rails app127.0.0.1:8080
  • 对my.app.dev的所有请求处理连接服务器
是否可以通过gruntgrunt连接代理执行此操作?

可能重复的