问题标签 [appharbor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
569 浏览

appharbor - 如何允许我的用户在 AppHarbor 上使用自定义域?

免费用户将获得类似 user1.myapp.com 的 URL 付费用户将能够将他们的域指向我的应用程序。我的应用程序将根据域名提供特定内容。

AppHarbor 有可能吗?是怎么回事?

0 投票
2 回答
3571 浏览

web-config - AppHarbor - 为什么是我的不工作?

我需要传入一个很长的查询字符串值(我理解,这本身就是一个有问题的做法),并且我无法让它在我的Appharbor应用程序实例上生效。

在本地,我已对我的 web.config 进行了此更改,并确认相关 URL 在本地有效:

并确保它存在于我的 Web.Release.config 转换后生成的 web.config 中。也就是说,当我推送到 AppHarbor 时,转换应该会捡起它......但我仍然遇到这个异常:

堆栈跟踪:

有任何想法吗?谢谢你的帮助。

0 投票
1 回答
801 浏览

asp.net - 如何让我的 ASP.NET Web 应用程序与 AppHarbor 一起工作?

我一直在开发一个 Web 应用程序,在 Visual Studio 2010 中使用带有 C# 的 ASP.NET Web 应用程序,并且刚刚开始并正在尝试将其部署到 AppHarbor。我可以很好地将我的项目推送到 AppHarbor 并且没有错误,但是当我尝试使用 URL 访问我的 Web 应用程序时,我收到一个错误:

HTTP 404。您正在查找的资源(或其依赖项之一)可能已被删除、名称已更改或暂时不可用。请查看以下 URL 并确保其拼写正确。

当我通过 Visual Studio 2010 运行我的应用程序时,它工作得很好,而且我之前已经设法让应用程序与 appHarbor 一起使用,使用 ASP.NET MVC 4 Web 应用程序。我猜我的代码有问题,例如在 webconfig 文件中,但我不知道是什么。我一直在寻找很长一段时间,试图找出我做错了什么的线索,但对于我的具体问题似乎没有希望。

您是否需要做一些特定的事情才能使 web 应用程序与 appHarbor 一起运行,或者我做错了什么?

0 投票
1 回答
1952 浏览

timeout - 尝试连接到 AppHarbor 上的 Memcached 服务器时出现超时异常

我一直在使用Enyim Memcached Client for .Net,试图连接到在AppHarbor上运行的服务器。我的配置文件的相关部分如下所示:

我的连接一直超时。有什么想法吗?以下是来自 Enyim 客户端的日志:

2012-01-21 18:56:08 [错误] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 无法初始化池。- System.TimeoutException:无法在 Enyim.Caching.Memcached.PooledSocket..ctor(IPEndPoint 端点,TimeSpan connectionTimeout, TimeSpan receiveTimeout) 在 Enyim.Caching.Memcached.MemcachedNode.CreateSocket() 在 Enyim.Caching.Memcached.Protocol.Binary.BinaryNode.CreateSocket() 在 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl.CreateSocket() 在 Enyim。 Caching.Memcached.MemcachedNode.InternalPoolImpl.InitPool() 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 请求将 50.19.210.46:11211 标记为已死 2012-01- 21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - FailurePolicy.ShouldFail(): True 2012-01-21 18:56:08 [WARN] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 标记节点 50.19。 210.46:11211 已死 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 节点 50.19.210.46:11211 已死。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 启动恢复计时器。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 计时器已启动。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 从池中获取流。50.19.210.46:11211 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 池已死或已处置,返回 null。50.19.210.46:11211 InternalPoolImpl - FailurePolicy.ShouldFail(): True 2012-01-21 18:56:08 [WARN] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 将节点 50.19.210.46:11211 标记为已死 2012-01-21 18:56 :08 [调试] 7 Enyim.Caching.Memcached.DefaultServerPool - 节点 50.19.210.46:11211 已死。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 启动恢复计时器。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 计时器已启动。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 从池中获取流。50.19.210.46:11211 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 池已死或已处置,返回 null。50.19.210.46:11211 InternalPoolImpl - FailurePolicy.ShouldFail(): True 2012-01-21 18:56:08 [WARN] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 将节点 50.19.210.46:11211 标记为已死 2012-01-21 18:56 :08 [调试] 7 Enyim.Caching.Memcached.DefaultServerPool - 节点 50.19.210.46:11211 已死。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 启动恢复计时器。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 计时器已启动。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 从池中获取流。50.19.210.46:11211 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 池已死或已处置,返回 null。50.19.210.46:11211 MemcachedNode.InternalPoolImpl - 将节点 50.19.210.46:11211 标记为已死 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 节点 50.19.210.46:11211 已死。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 启动恢复计时器。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 计时器已启动。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 从池中获取流。50.19.210.46:11211 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 池已死或已处置,返回 null。50.19.210.46:11211 MemcachedNode.InternalPoolImpl - 将节点 50.19.210.46:11211 标记为已死 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 节点 50.19.210.46:11211 已死。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 启动恢复计时器。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 计时器已启动。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 从池中获取流。50.19.210.46:11211 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 池已死或已处置,返回 null。50.19.210.46:11211 Caching.Memcached.DefaultServerPool - 启动恢复计时器。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 计时器已启动。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 从池中获取流。50.19.210.46:11211 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 池已死或已处置,返回 null。50.19.210.46:11211 Caching.Memcached.DefaultServerPool - 启动恢复计时器。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.DefaultServerPool - 计时器已启动。2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 从池中获取流。50.19.210.46:11211 2012-01-21 18:56:08 [DEBUG] 7 Enyim.Caching.Memcached.MemcachedNode.InternalPoolImpl - 池已死或已处置,返回 null。50.19.210.46:11211

更新:

原来我无法连接到 memcached 服务器的原因是因为它只能从 appharbor 的环境中访问。因此,对于遇到此问题的其他任何人,您需要在本地开发时使用本地 memcached 服务,然后在部署时简单地更改凭据(apphaorbor 实际上会自动为您执行)。问题已解决。

0 投票
1 回答
402 浏览

sendgrid - 将 SendGrid 与 appharbor 一起使用时遇到问题

我正在使用 appharbor,将 SendGrid 添加为插件,他们为我提供了 smtp 主机 - smtp.sendgrid.com 端口 - 587 用户 - 32adf793-2cbf-492c-9bb9- * ** * @apphb.com

当我使用这些详细信息并尝试通过我的 c# 代码发送电子邮件时,它显示“发送电子邮件失败”。请帮忙。

0 投票
1 回答
533 浏览

git - 我可以为 appharbor 部署自定义 web.config 转换吗?

今天查看 AppHarbor。我的主要问题在标题中,但我还有其他与 git + windows 相关的问题。

首先,和这个视频有关。我喜欢我可以为部署指定配置转换的想法。我的问题是,它必须是 Web.Release.config 转换吗?我实际上想通过将它用作集成测试的 qa 部署来测试它。我是否可以将转换指定为使用 Web.DeployToAppHarbor.config 代替?

其次,我已经阅读了有关 crlf 问题的信息。当我跑步git add .时,我应该得到所有这些消息吗?

按照这些思路,我是否也应该在运行后收到所有这些消息git commit -m "Initial commit"

如果这些都是正常的,有没有办法让 git bash 不那么冗长?

0 投票
1 回答
707 浏览

asp.net-mvc-3 - 为什么 AppHarbor + RequireHttpsAttribute 等于皱眉脸:(

今天首次部署到 AppHarbor。在进行了一些初步工作后,我成功地部署了一个 MVC3 应用程序。

但是,使用 RequireHttpsAttribute 存在问题。起初我注意到 http 页面工作正常,但 https 页面收到网页有重定向循环的错误。

我的意思是整个应用程序都需要 https,所以我在 global.asax 中添加了一个全局 RequireHttpsAttribute 过滤器。现在每个页面都出现重定向循环错误,在 chrome 和 FF 中。

假设这与幕后的端口重定向有关。如何解决?我需要自定义 RequireHttpsAttribute 吗?

0 投票
3 回答
2435 浏览

asp.net-mvc-3 - 支持 RavenDB 的共享托管服务提供商

我设置了一个 AppHarbor 应用程序,却发现它不支持嵌入式 RavenDB。看起来它可能很快就会出现在AppHarbor 上。同时,它所做的只是抛出一个错误,如下所示

有人对支持 RavenDB 的共享主机提供商有什么建议吗?我正在做一个小项目,所以免费会很棒(这就是我寻找 AppHarbor 的原因)。

0 投票
2 回答
226 浏览

sql-server - AppHarbor - 多个应用程序中的相同 SQL Server

我正在使用变量在两个应用程序之间配置相同的“连接字符串”,因为这两个应用程序确实访问了相同的用户数据库。

我可以在多个应用程序中设置相同的 SQL Server (Nano 10GB) 以使用 web.config 的转换吗?

0 投票
1 回答
194 浏览

appharbor - AppHarbor 上的标头过期

是否有一种简单的方法可以将过期标头添加到来自 appharbor 站点的静态内容?我有一堆图像、css 和 javascript 文件,这些文件没有设置过期时间,让我在 yslow 上望而却步。