Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Update to add dotenv support
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdgs88 committed Oct 18, 2018
1 parent 98c70c5 commit c92ff90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/carrier_wave.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c92ff90

Please sign in to comment.