Capistrano的Bundler不会为DelayedJob生成二进制文件 [英] Bundler with Capistrano doesn't generate a binary for DelayedJob

查看:62
本文介绍了Capistrano的Bundler不会为DelayedJob生成二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Bundler用于Capistrano部署的Rails应用程序。我正在尝试添加DelayedJob gem,但是执行部署后,远程服务器上的bin / delayed_job文件丢失了。它存在于我的本地计算机上。

I'm using Bundler for a Rails app deployed by Capistrano. I'm trying to add the DelayedJob gem, but the bin/delayed_job file is missing from the remote server after I do a deploy. It exists on my local machine.

我尝试使用 bundle binstubs delay_job 手动创建它,但是失败:没有任何可执行的文件。

I tried manually creating it with bundle binstubs delayed_job but it fails with: There are no executables for the gem delayed_job.

我在这里缺少什么?

有问题的宝石是:捆绑器1.3.5,Capistrano 3.1.0,DelayedJob 4.0.0,Rails 4.0.2

The gems in question are: Bundler 1.3.5, Capistrano 3.1.0, DelayedJob 4.0.0, Rails 4.0.2

编辑:此处是我的完整Gemfile: http://pastebin.com/WuE3eJrj

Here is my full Gemfile: http://pastebin.com/WuE3eJrj

推荐答案

根据文档,我认为您需要包含 gem守护程序

I think you need to include the gem "daemons", according to the documentation:


为此,请将gem daemons添加到您的Gemfile中,并确保运行rails产生了delay_job。

To do so, add gem "daemons" to your Gemfile and make sure you've run rails generate delayed_job.

https://github.com/collectiveidea/delayed_job#running-jobs

这篇关于Capistrano的Bundler不会为DelayedJob生成二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆