Top Level Namespace

Defined Under Namespace

Modules: ActionDispatch, CarrierWave, CustomFields, Formtastic, Kaminari, Liquid, Locomotive, Mongoid, Tribeca Classes: Boolean, Hash, String

Instance Method Summary collapse

Instance Method Details

#cObject

configure it ##



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/generators/locomotive/install/templates/dragonfly.rb', line 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.allow_fetch_url  = true
  c.allow_fetch_file = true

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