Skip to content

Commit

Permalink
Allow change of secret key base and database name locally with env va…
Browse files Browse the repository at this point in the history
…riables
  • Loading branch information
fblupi committed Apr 18, 2024
1 parent e12da57 commit d81c901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ default: &default

development:
<<: *default
database: decidim_inspire_development
database: <%= ENV.fetch("DATABASE_HOST") { "decidim_inspire_development" } %>

# The specified database role being used to connect to postgres.
# To create additional roles in postgres see `$ createuser --help`.
Expand Down
2 changes: 1 addition & 1 deletion config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ default: &default

development:
<<: *default
secret_key_base: 20030a99bcc7efa3a3e98e2db40723909aaedc499ba757dbe83819a5836a229a5dd5a1b6e43bcc8fcde9f5622c7a373332c84a8e5ccb44a182be3def0d968734
secret_key_base: <%= Decidim::Env.new("SECRET_KEY_BASE", "20030a99bcc7efa3a3e98e2db40723909aaedc499ba757dbe83819a5836a229a5dd5a1b6e43bcc8fcde9f5622c7a373332c84a8e5ccb44a182be3def0d968734") %>
omniauth:
developer:
enabled: true
Expand Down

0 comments on commit d81c901

Please sign in to comment.