使用 Passenger/Apache Web 服务器时,Integrity CI 服务器不运行构建

发布于 2025-01-08 10:39:58 字数 801 浏览 6 评论 0原文

Integrity 应用程序在我的 OSX 开发环境中运行良好。我已将一个实例部署到 Ubuntu 服务器以进行生产设置,并且我可以设置一个新项目。一旦我调用手动构建来尝试测试第一个构建,就会创建构建记录,但构建永远不会运行。

我已经在我的应用程序中添加了一堆日志记录,并且能够跟踪在 ThreadPool#add 中添加构建作业时的故障点 看起来一切都运行良好,可以将作业添加到构建池中,但是尽管池已生成并且没有引发任何异常,但池实际上并未运行任何内容。

我运行的环境是Ubuntu 11.04,RVM & Ruby 1.9.2-p290、Passenger / Apache,并从带有 Sqlite3 和 ThreadedBuilder 的 master 运行 Integrity。

更新:

我发现一篇文章表明这​​可能是使用 Apache & 的问题。 Passenger 未正确加载 Ruby 环境。情况似乎如此,因为在开发中我只是运行 bundle execrackup,而在生产中我尝试使用 Passenger。因此,在生产计算机上,我使用 bundle execrackup 启动了一个 Integrity 实例,它确实开始运行构建,只是它没有正确找到 bundler gem 作为它应该有。我确信我能以某种方式找到解决办法。

所以本质上我遇到的问题是使用 Passenger 运行 Integrity,而不是使用rackup。不过,为我指出这个方向的文章并不适用于他们在 Apache 环境中获取 Ruby 的解决方案。谁能帮助我确定如何正确运行 Integrity with Passenger?

The Integrity App is working fine for me in my OSX dev environment. I've deployed an instance to a Ubuntu server for my production setup, and I'm able to setup a new project. Once I call a manual build to attempt to test a first build the build record is created, but the build is never run.

I've added a bunch of logging to my application and have been able to track the point of failure to when the build job is added in ThreadPool#add It appears everything is running fine to get the job added to the build pool, but that the pool isn't actually running anything despite being spawned and no exceptions being raised.

The environment I'm running is Ubuntu 11.04, RVM & Ruby 1.9.2-p290, Passenger / Apache, and running Integrity from master w/Sqlite3 and ThreadedBuilder.

UPDATE:

I found an article indicating this may be an issue with using Apache & Passenger not loading the Ruby environment properly. This appears to be the case since in dev I'm just running bundle exec rackup, and in production I was trying to use Passenger. So on the production machine I started an instance of Integrity using bundle exec rackup, which does indeed actually start running the builds except that it didn't properly find the bundler gem as it should have. I'm sure I can track down a fix for that somehow.

So essentially the issue I am having is with running Integrity with Passenger rather than using rackup. The article that pointed me in this direction didn't work with their solution of getting Ruby in the Apache environment though. Can anyone help me determine how to properly run Integrity with Passenger?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

探春 2025-01-15 10:39:58

问题在于 Passenger 处理线程的方式。通过使用 DelayedJob 进行构建而不是 ThreadedBuilder 更改为 DelayedBuilder,我能够使用 Passenger 作为 Web 服务器。

The issue was in the way Passenger handles threading. By changing to the DelayedBuilder using DelayedJob for builds rather than the ThreadedBuilder I was able to use Passenger as the web server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文