Skip to content

Commit c9a41fa

Browse files
committed
Add dot-env and update heroku task
1 parent 45a507d commit c9a41fa

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@
2323
# Ignore public uploads
2424
public/uploads
2525
public/assets
26+
27+
.env

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ gem "sentry-raven"
3030

3131
gem "letter_opener_web", "~> 1.3"
3232

33+
34+
3335
group :development, :test do
36+
gem "dotenv-rails"
3437
gem "byebug", "~> 10.0", platform: :mri
3538

3639
gem "decidim-dev", git: "https://github.com/OpenSourcePolitics/decidim.git", branch: "0.18-merge"

Gemfile.lock

+5
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ GEM
343343
doorkeeper (4.4.3)
344344
railties (>= 4.2)
345345
doorkeeper-i18n (4.0.1)
346+
dotenv (2.7.5)
347+
dotenv-rails (2.7.5)
348+
dotenv (= 2.7.5)
349+
railties (>= 3.2, < 6.1)
346350
equalizer (0.0.11)
347351
erb_lint (0.0.30)
348352
activesupport
@@ -794,6 +798,7 @@ DEPENDENCIES
794798
dalli
795799
decidim!
796800
decidim-dev!
801+
dotenv-rails
797802
faker (~> 1.8)
798803
fog-aws
799804
letter_opener_web (~> 1.3)

lib/tasks/heroku.rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ namespace :heroku do
1010

1111
if ENV["AWS_ACCESS_KEY_ID"].nil?
1212
puts "No AWS_ACCESS_KEY_ID found !"
13-
puts "export SECRET_KEY_BASE first"
13+
puts "export AWS_ACCESS_KEY_ID first"
1414
exit 1
1515
end
1616

1717
if ENV["AWS_SECRET_ACCESS_KEY"].nil?
1818
puts "No SECRET_KEY_BASE found !"
19-
puts "export SECRET_KEY_BASE first"
19+
puts "export AWS_SECRET_ACCESS_KEY first"
2020
exit 1
2121
end
2222

0 commit comments

Comments
 (0)