Skip to content

Commit 1d7ef47

Browse files
committed
Add missing gem
1 parent b1b0c07 commit 1d7ef47

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

lib/generators/heroku_installer.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,40 @@ def set_seeds_for_review_apps
2525
ENV["DECIDIM_HOST"] = ENV["HEROKU_APP_NAME"] + ".herokuapp.com"
2626
ENV["SEED"] = "true"
2727
end
28+
29+
require "decidim/faker/localized"
30+
31+
Decidim::Organization.first || Decidim::Organization.create!(
32+
name: Faker::Company.name,
33+
twitter_handler: Faker::Hipster.word,
34+
facebook_handler: Faker::Hipster.word,
35+
instagram_handler: Faker::Hipster.word,
36+
youtube_handler: Faker::Hipster.word,
37+
github_handler: Faker::Hipster.word,
38+
smtp_settings: {
39+
from: ENV["EMAIL"],
40+
user_name: ENV["SENDGRID_USERNAME"],
41+
encrypted_password: Decidim::AttributeEncryptor.encrypt(ENV["SENDGRID_PASSWORD"]),
42+
address: "smtp.sendgrid.net",
43+
port: 587,
44+
authentication: :plain,
45+
enable_starttls_auto: true
46+
},
47+
host: ENV["DECIDIM_HOST"] || "localhost",
48+
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
49+
Decidim::Faker::Localized.sentence(15)
50+
end,
51+
default_locale: Decidim.default_locale,
52+
available_locales: Decidim.available_locales,
53+
reference_prefix: Faker::Name.suffix,
54+
available_authorizations: Decidim.authorization_workflows.map(&:name),
55+
users_registration_mode: :enabled,
56+
tos_version: Time.current,
57+
badges_enabled: true,
58+
user_groups_enabled: true,
59+
send_welcome_notification: true
60+
)
61+
2862
Decidim.seed!
2963
SEEDS_CONTENT
3064
end
@@ -33,6 +67,7 @@ def add_production_gems
3367
gem_group :production do
3468
gem "passenger"
3569
gem "fog-aws"
70+
gem "aws-sdk-s3"
3671
gem "dalli"
3772
gem "sendgrid-ruby"
3873
gem "newrelic_rpm"

0 commit comments

Comments
 (0)