carrierwave-azure icon indicating copy to clipboard operation
carrierwave-azure copied to clipboard

cannot run server after installing carrierwave-azure

Open lethunder opened this issue 10 years ago • 4 comments

hello guys, i have an issu after installing carrierwave-azure

1 -gem 'carrierwave-azure' in gemfile 2- bundle install 3- carrierwave.rb in initializers looks like CarrierWave.configure do |config| config.azure_credentials = { :storage_account_name => 'xxxxxxxxxxx', :storage_access_key => 'xxxxxxxxxxxxxxxxxxxxxxxxx' } config.azure_container = 'files' end

then when i try to run my server with "rails s" i have C:/Bitnami/rubystack/ruby/lib/ruby/gems/2.0.0/gems/activesupport-4.1.9/lib/activ e_support/dependencies.rb:247:in `require': cannot load such file -- azure (Load Error)

then when i use another configuration like

CarrierWave.configure do |config| config.azure_storage_account_name = 'xxxxxxxxxxxxxxxxx' config.azure_storage_access_key = 'xxxxxxxxxxxxxxxxxx' config.azure_container = 'files' end

same error message

my rails conf: ruby 2.0.0 rails 4.1.9 carrierwave-azure 0.0.2

lethunder avatar Feb 11 '15 09:02 lethunder

+1 same here

deanpcmad avatar May 03 '15 19:05 deanpcmad

I had to add the azure gem to my Gemfile too and do a bundle update azure gem 'azure', '~> 0.6.4'

deanpcmad avatar May 03 '15 19:05 deanpcmad

Same here and used the solution suggested by @deanperry.

tspaulino avatar May 06 '15 18:05 tspaulino

Also I had problem with dependencies. Somehow my carrierwave gem prevented to install azure gem via bundle. So I removed github: 'carrierwaveuploader/carrierwave near carrierwave in my Gemfile. And made bundle update. This worked for me.

ilya-zakharov8 avatar Sep 14 '16 13:09 ilya-zakharov8