Skip to content

Commit

Permalink
secret_key_base
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilrieger committed Feb 12, 2024
1 parent 5bdcb7d commit 1f359c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

config.hosts << "employee360-staging.notch8.cloud"
config.hosts << ENV['HOST_URL'] if ENV['HOST_URL'].present?

# Code is not reloaded between requests.
config.cache_classes = true
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# confirmation, reset password and unlock tokens in the database.
# Devise will use the `secret_key_base` as its `secret_key`
# by default. You can change it below and use your own secret key.
# config.secret_key = '1cd30110a2be779c9380b59f95af0a485008aa816dbe61e9f9ca4454781336b90d7e360459a320020f12b04bd05e6794dc9f8dff04cde546a7fc3747e96ceb9e'
config.secret_key = ENV["SECRET_KEY_BASE"]

# ==> Controller configuration
# Configure the parent class to the devise controllers.
Expand Down
4 changes: 3 additions & 1 deletion ops/staging-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,6 @@ env:
DB_PASSWORD: $DB_PASSWORD
DB_PORT: 5432
DB_USER: postgres
NAME: employee360
NAME: employee360
SECRET_KEY_BASE: $SECRET_KEY_BASE
HOST_URL: employee360-staging.notch8.cloud

0 comments on commit 1f359c0

Please sign in to comment.