I have been hacking around with this for a bit but want to see if there is an easy way: I am using Heroku and I have the wkhtmltopdf static binary in: rails_root/vendor/wkhtmltopdf I am not using any plug ins for wkhtmltopdf, just the executable, on purpose and want to keep it this way. My code wants to execute wkhtmltopdf: # tell wkhtmltopdf to convert html file to pdf %x[wkhtmltopdf-amd64 #{html_path} #{new_pdf_path}] But it is not found... is there a way I can tell my rails app to look in vendor/wkhtmltopdf for the exe? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 15, 2:50 am, David Kahn <d...-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote:> I have been hacking around with this for a bit but want to see if there is > an easy way: > > I am using Heroku and I have the wkhtmltopdf static binary in: > rails_root/vendor/wkhtmltopdf > > I am not using any plug ins for wkhtmltopdf, just the executable, on purpose > and want to keep it this way. > > My code wants to execute wkhtmltopdf: > > # tell wkhtmltopdf to convert html file to pdf > %x[wkhtmltopdf-amd64 #{html_path} #{new_pdf_path}] > > But it is not found... is there a way I can tell my rails app to look in > vendor/wkhtmltopdf for the exe?Easiest thing is probably to construct the full path to your binary rather than relying on what may or may not be in $PATH Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn wrote in post #961433:> I have been hacking around with this for a bit but want to see if there > is > an easy way: > > I am using Heroku and I have the wkhtmltopdf static binary in: > rails_root/vendor/wkhtmltopdf > > I am not using any plug ins for wkhtmltopdf, just the executable, on > purpose > and want to keep it this way.Why? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Seemingly Similar Threads
- Toto blog date issue - production only, localhost fine
- OT: Installing static binary of wkhtmltopdf
- WickedPDF vs PDFKit vs. Prawn, etc.
- Rails 3 Active Record query returns "undefined method `loaded?' for #<Array:0x126a4c>"
- CSV::parse with named columns error on Heroku