Skip to content

Commit

Permalink
Dragonfly was mistakenly configured to use the convert command when i…
Browse files Browse the repository at this point in the history
…dentifying
  • Loading branch information
bjorntrondsen committed Feb 4, 2013
1 parent 2a48ed0 commit d23abdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lib/generators/locomotive/install/templates/dragonfly.rb
Expand Up @@ -11,9 +11,8 @@
Dragonfly[:images].configure do |c|
# Convert absolute location needs to be specified
# to avoid issues with Phusion Passenger not using $PATH
convert = `which convert`.strip.presence || "/usr/local/bin/convert"
c.convert_command = convert
c.identify_command = convert
c.convert_command = `which convert`.strip.presence || "/usr/local/bin/convert"
c.identify_command = `which identify`.strip.presence || "/usr/local/bin/identify"

c.allow_fetch_url = true
c.allow_fetch_file = true
Expand Down
7 changes: 3 additions & 4 deletions spec/dummy/config/initializers/dragonfly.rb
Expand Up @@ -11,12 +11,11 @@
Dragonfly[:images].configure do |c|
# Convert absolute location needs to be specified
# to avoid issues with Phusion Passenger not using $PATH
convert = `which convert`.strip.presence || "/usr/local/bin/convert"
c.convert_command = convert
c.identify_command = convert
c.convert_command = `which convert`.strip.presence || "/usr/local/bin/convert"
c.identify_command = `which identify`.strip.presence || "/usr/local/bin/identify"

c.allow_fetch_url = true
c.allow_fetch_file = true

c.url_format = '/images/dynamic/:job/:basename.:format'
end
end

0 comments on commit d23abdb

Please sign in to comment.