@@ -25,6 +25,40 @@ def set_seeds_for_review_apps
25
25
ENV["DECIDIM_HOST"] = ENV["HEROKU_APP_NAME"] + ".herokuapp.com"
26
26
ENV["SEED"] = "true"
27
27
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
+
28
62
Decidim.seed!
29
63
SEEDS_CONTENT
30
64
end
@@ -33,6 +67,7 @@ def add_production_gems
33
67
gem_group :production do
34
68
gem "passenger"
35
69
gem "fog-aws"
70
+ gem "aws-sdk-s3"
36
71
gem "dalli"
37
72
gem "sendgrid-ruby"
38
73
gem "newrelic_rpm"
0 commit comments