我想发布我的项目到IIS中的一个文件夹,但路径设置的方式是我看起来像一个内部循环,没有找到路径。发布我的webapi项目aspnet web api angularjs
我出版了一本文件夹中的项目已经
angular.module("common.services", ["ngResource"])
.constant("appSettings",
{
//serverPath: "http://localhost:53967/"
//name of the computer and folder to which the project was published
serverPath:"http://ct-dx-ariang/AspNetWebApi/"
});
而且具有资源设置为跟随
angular.module("common.services").factory("productResource", ["$resource", "appSettings", productResource])
function productResource($resource, appSettings) {
//return $resource(appSettings.serverPath + "/api/products/:search");
return $resource(appSettings.serverPath + "/api/products/:id"
这是我的路线
$urlRouterProvider.otherwise("/");//default url
$stateProvider.state("home", {
url: "/",
templateUrl: "/templates/welcomeView.html"
}).state("productList", {
url: "/products",
templateUrl: "/templates/productListView.html",
controller: "ProductListController"
}).
如何修改此示例项目,以便它在IIS上的发布文件夹中运行,而不是在Visual Studio上的localhost中运行?