背景: 我試圖連接我的呼嚕聲服務器實例,在本地主機在同一臺機器上運行我的API服務:8080/API /。 當前使用grunt-connect-proxy來實現此目的。 問題/疑問: http://localhost:9000/api/user-profile/ Failed to load resource: the server responded with a status of 404 (
我使用grunt-connect-proxy「^ 0.2.0」代理我的angularjs應用程序的api。該項目從yeoman角發電機開始。 我跟着指示here,但使用的代理時,我得到: Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:9000/api/
我按照GCP Github上的文檔,但沒有代理請求到我的rails服務器。 I've read that there are middleware changes but those haven't worked either。 我曾在一個月前工作過,但遺憾地刪除了包含工作Gruntfile.js的項目(現在討厭自己這麼糟糕)。試圖恢復刪除的文件,但無濟於事! Here is my yeoman