我正在尝试将nopCommerce应用程序部署到AppHarbor.
当我启动页面时,我遇到了运行时重定向循环.我添加了一些调试日志记录,问题似乎是Global.asax.cs中的这一部分 - > EnsureDatabaseIsInstalled():
if (!webHelper.GetThisPageUrl(false).StartsWith(installUrl, StringComparison.InvariantCultureIgnoreCase))
{
this.Response.Redirect(installUrl);
}
Run Code Online (Sandbox Code Playgroud)
StartsWith比较始终为false,因为GetThisPageUrl返回
http://[name].apphb.com:14275/install
和installUrl(通过GetStoreLocation)返回
http://[name].apphb.com/install
有没有人能够让nopCommerce与AppHarbor一起工作?