终端显示delayed_job开始,但没有做任何事情

发布于 2024-09-13 18:54:06 字数 518 浏览 4 评论 0原文

我有一个可以在本地计算机上完美运行的应用程序,现在正在部署它。我已经设置好了 VPS,而且也能正常工作。我的问题来自无法启动delayed_job。我在通过 SSH 连接到应用程序时执行“ruby script/delayed_job start RAILS_ENV = Production”,它返回“delayed_job:pid 11547 的进程已启动”。当我在htop中查找进程时,找不到它。

所以我四处寻找并了解到 Monit 可以让elastoday_job继续运行。我设置了它,希望我能以这种方式启动delayed_job。不过,没有delayed_job.pid,所以我没有走得太远。不过,我最终在其中设置了 nginx 和 mysql,并且想完成延迟作业的设置。缺少delayed_job.pid 会造成妨碍。

当我通过 SSH 连接到应用程序并运行“rake jobs:work RAILS_ENV=production”时,一切正常。所以我很确定应用程序本身没问题。

我正在使用collectiveidea的delayed_job。感谢您的任何帮助。

I have an app that works perfectly on my local machine and am deploying it now. I have the VPS all set up and it pretty much works, as well. My problem comes from not being able to start delayed_job. I do the "ruby script/delayed_job start RAILS_ENV=production" while SSHd to the app and it returns "delayed_job: process with pid 11547 started." When I look for the process in htop, I can't find it.

So I dug around and read that Monit can keep delayed_job going. I set that up, hoping I could start up the delayed_job that way. There's no delayed_job.pid, though, so I didn't get far. I ended up setting up nginx and mysql in it, though, and would like to finish setting up delayed_job. The lack of delayed_job.pid gets in the way.

When I SSH into the app and run "rake jobs:work RAILS_ENV=production", everything works just fine. So I'm pretty sure the app itself is fine.

I'm using collectiveidea's delayed_job. Thanks for any help.

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

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

发布评论

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

评论(2

追星践月 2024-09-20 18:54:06

原来是守护进程gem有问题。使用 ghazel-daemons 分支效果非常好。现在开始设置 Monit。

It turns out that there's a problem with the daemons gem. Using the ghazel-daemons fork works perfectly. Now onto setting up Monit.

筑梦 2024-09-20 18:54:06

就我而言,我只是声明它必须在 Gemfile 中使用 1.0.10 版本的守护进程:

gem "daemons", "= 1.0.10"

这是 2008 年的先前版本的守护进程。

In my case, I just declare that it must use version 1.0.10 of daemons in the Gemfile:

gem "daemons", "= 1.0.10"

Which is the previous version of daemons from 2008.

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