I added the following line in my buildfile: proxy "/tasks", :to => "localhost:3000"
Yet, the error I get is 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)来修复此问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.