From c92ff9090902e00cf1f8c9417dea2f7ab6225040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B3mez?= Date: Thu, 18 Oct 2018 17:24:39 +0200 Subject: [PATCH] Update to add dotenv support --- recipes/carrier_wave.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/carrier_wave.rb b/recipes/carrier_wave.rb index 1d26a9c..7f6ed42 100644 --- a/recipes/carrier_wave.rb +++ b/recipes/carrier_wave.rb @@ -40,13 +40,14 @@ def add_initializer CODE end + def add_application_config @template.append_file '.env.sample', "\nAWS_ACCESS_KEY=''" - @template.append_file '.env', "\nAWS_ACCESS_KEY=''" @template.append_file '.env.sample', "\nAWS_SECRET_KEY=''" - @template.append_file '.env', "\nAWS_SECRET_KEY=''" @template.append_file '.env.sample', "\nAWS_S3_BUCKET=''" + @template.append_file '.env', "\nAWS_ACCESS_KEY=''" + @template.append_file '.env', "\nAWS_SECRET_KEY=''" @template.append_file '.env', "\nAWS_S3_BUCKET=''" - end + end def add_production_env_config @template.gsub_file 'config/environments/production.rb',