We were using `consul.dev` as default, which might be fine for the development environment, but it's something that definitely needs to be changed on production. Now we're providing a better default setting: using the same domain which is used to generate URLs in emails. This also makes it easier to configure new tenants, since the setting will default to whatever host the new tenant is using. The `|| "consul.dev"` part might not be needed; I'm keeping it because I'm not sure production environents would not experience any new issues if we don't add it, but we might remove it in the future.
26 lines
815 B
Ruby
26 lines
815 B
Ruby
section "Creating Settings" do
|
|
Setting.reset_defaults
|
|
|
|
{
|
|
"facebook_handle": "CONSUL",
|
|
"feature.featured_proposals": "true",
|
|
"feature.map": "true",
|
|
"instagram_handle": "CONSUL",
|
|
"mailer_from_name": "CONSUL",
|
|
"meta_description": "Citizen participation tool for an open, "\
|
|
"transparent and democratic government",
|
|
"meta_keywords": "citizen participation, open government",
|
|
"meta_title": "CONSUL",
|
|
"org_name": "CONSUL",
|
|
"proposal_code_prefix": "MAD",
|
|
"proposal_notification_minimum_interval_in_days": 0,
|
|
"telegram_handle": "CONSUL",
|
|
"twitter_handle": "@consul_dev",
|
|
"twitter_hashtag": "#consul_dev",
|
|
"votes_for_proposal_success": "100",
|
|
"youtube_handle": "CONSUL"
|
|
}.each do |name, value|
|
|
Setting[name] = value
|
|
end
|
|
end
|