[英]SproutCore: Setting up proxy in Buildfile doesn't work
I added the following line in my buildfile: proxy "/tasks", :to => "localhost:3000"
我在构建文件中添加了以下行: proxy "/tasks", :to => "localhost:3000"
Yet, the error I get is GET http://localhost:4020/tasks 404 (Not Found)
. 但是,我得到的错误是GET http://localhost:4020/tasks 404 (Not Found)
。 Which means, the proxy setup hasn't been effected. 这意味着代理设置尚未生效。 Where am I going wrong? 我要去哪里错了?
Here's the buildfile: 这是构建文件:
config :todos, :required => :sproutcore
proxy "/tasks", :to => 'localhost:3000'
Note: I tried restarting the server too. 注意:我也尝试过重新启动服务器。
通过将行添加到Project Buildfile(而不是App Buildfile)来修复此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.