rails3中的bin目录在哪里?

编程入门 行业动态 更新时间:2024-10-09 00:53:06
本文介绍了rails3中的bin目录在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图在我的rails项目的bin目录中放置 wkhtmltopdf 可执行文件,以便它可以与heroku一起使用,如这里。

I am trying to place the wkhtmltopdf executable in the "bin directory" of my rails project so that it works with heroku, as mentioned here.

愚蠢的问题....哪里是bin rails项目中的文件夹?我将可执行文件放在我的可执行文件的 root 中,但是,heroku给出了一个错误:

dumb question....where is the "bin" folder in the rails project? I placed the executable in root of my executable, however, heroku gives an error saying:

No wkhtmltopdf executable found at /app/bin/wkhtmltopdf-i386

以下内容代码用于为wkhtmltopdf提供路径

And the following code is used to provide path for wkhtmltopdf

config.wkhtmltopdf = Rails.root.join('bin', 'wkhtmltopdf-i386');

推荐答案

您需要在app /文件夹并将其添加到那里。

You need to create the bin folder under the app/ folder and add it in there.

mkdir app/bin

更多推荐

rails3中的bin目录在哪里?

本文发布于:2023-11-12 14:37:05,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目录   bin

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!