From f1027ab5643757a837df6d424ddfeb2cbf7989a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasia=20Jarmo=C5=82kowicz?= Date: Thu, 17 May 2018 23:06:24 +0200 Subject: [PATCH] WIP fix aws address issue --- app/controllers/profiles_controller.rb | 1 - config/initializers/carrierwave.rb | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index c0b717a8..d219c4e2 100755 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -47,7 +47,6 @@ class ProfilesController < ApplicationController @profile = current_user.profile end @profile.update_attributes(params[:profile]) - puts Settings.image&.host json_saved @profile, 'Profile updated' end diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb index 59b7bfc0..0542a856 100755 --- a/config/initializers/carrierwave.rb +++ b/config/initializers/carrierwave.rb @@ -4,7 +4,8 @@ CarrierWave.configure do |config| config.storage = :aws config.aws_bucket = Settings.aws.bucket config.aws_acl = :public_read - config.asset_host = Settings.image&.host || "https://s3-#{Settings.aws.region}.amazonaws.com/#{Settings.aws.bucket}" + # config.asset_host = Settings.image&.host || "https://s3-#{Settings.aws.region}.amazonaws.com/#{Settings.aws.bucket}" + config.asset_host = "https://s3.amazonaws.com/#{Settings.aws.bucket}" config.aws_authenticated_url_expiration = 60 * 60 * 24 * 365 config.aws_credentials = { access_key_id: Settings.aws.access_key_id,