我在构建文件中添加了以下行:proxy "/tasks", :to => "localhost:3000"
但是,我得到的错误是GET http://localhost:4020/tasks 404 (Not Found)
。
这意味着代理设置尚未生效。
我要去哪里错了?
这是构建文件:
config :todos, :required => :sproutcore
proxy "/tasks", :to => 'localhost:3000'
注意:我也尝试过重新启动服务器。
最佳答案
通过将行添加到Project Buildfile(而不是App Buildfile)来修复此问题。
关于javascript - SproutCore:在Buildfile中设置代理不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13788557/