Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where is bin directory in rails3?

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.

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

And the following code is used to provide path for wkhtmltopdf

config.wkhtmltopdf = Rails.root.join('bin', 'wkhtmltopdf-i386');
like image 875
Omnipresent Avatar asked May 07 '11 17:05

Omnipresent


1 Answers

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

mkdir app/bin
like image 58
Buddy Lindsey Avatar answered Sep 28 '22 05:09

Buddy Lindsey