Commit 3e845604 authored by marcheing's avatar marcheing Committed by Diego de Araújo Martinez Camarinha

Add paperclip gem and development configuration

Assuming ImageMagick is installed and the 'convert' binary is on
'/usr/bin'
Signed-off-by: Diego de Araújo Martinez Camarinha's avatarDiego Araújo <diegoamc@protonmail.ch>
parent 52e15eb8
......@@ -53,6 +53,9 @@ gem 'foundation-rails'
# A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so on
gem 'hover-rails'
# Easy file attachment management for Active Record
gem 'paperclip', '~> 5.0.0.beta1'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
......
......@@ -56,7 +56,11 @@ GEM
xpath (~> 2.0)
carmen (1.0.2)
activesupport (>= 3.0.0)
climate_control (0.0.3)
activesupport (>= 3.0)
cliver (0.3.2)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
......@@ -128,6 +132,7 @@ GEM
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mimemagic (0.3.1)
mini_portile2 (2.1.0)
minitest (5.9.0)
multi_json (1.12.1)
......@@ -137,6 +142,12 @@ GEM
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
orm_adapter (0.5.0)
paperclip (5.0.0.beta2)
activemodel (>= 4.2.0)
activesupport (>= 4.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (~> 0.3.0)
pkg-config (1.1.7)
poltergeist (1.9.0)
capybara (~> 2.1)
......@@ -274,6 +285,7 @@ DEPENDENCIES
jbuilder (~> 2.0)
jquery-rails
listen (~> 3.0.5)
paperclip (~> 5.0.0.beta1)
poltergeist
puma (~> 3.0)
rails (>= 5.0.0.rc1, < 5.1)
......
......@@ -24,6 +24,9 @@ chdir APP_ROOT do
# Add necessary setup steps to this file.
green '== Installing dependencies =='
# Check for ImageMagick convert
system! 'which convert'
system! 'gem install bundler --conservative'
system('bundle check') || system!('bundle install')
......@@ -40,6 +43,6 @@ chdir APP_ROOT do
green '== Restarting application server =='
system! 'bin/rails restart'
green 'All done!'
end
......@@ -51,4 +51,7 @@ Rails.application.configure do
# Needed configuration for devise
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
# Directory for Paperclip to look when searching for the 'convert' utility of ImageMagick
Paperclip.options[:command_path] = '/usr/bin/'
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment