本文介绍了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目录在哪里?
发布评论