Skip to content

Commit 8540860

Browse files
author
Shana Moore
authored
Merge pull request #2208 from samvera/use-valkyrie-and-show-backtrace
⚙️ Use valkyrie and show backtrace on staging
2 parents 57108c2 + 2b41a8f commit 8540860

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
config.eager_load = true
1515

1616
# Full error reports are disabled and caching is turned on.
17-
config.consider_all_requests_local = false
17+
config.consider_all_requests_local = ActiveModel::Type::Boolean.new.cast(ENV.fetch('HYKU_SHOW_BACKTRACE', 'false'))
1818
config.action_controller.perform_caching = true
1919

2020
# Disable serving static files from the `/public` folder by default since

ops/demo-deploy.tmpl.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ extraEnvVars: &envVars
125125
value: "false"
126126
- name: HYRAX_FITS_PATH
127127
value: /app/fits/fits.sh
128+
- name: HYRAX_VALKYRIE
129+
value: "true"
128130
- name: HYKU_ADMIN_HOST
129131
value: hyku-demo.$BASE_URL
130132
- name: HYKU_ADMIN_ONLY_TENANT_CREATION
@@ -139,6 +141,8 @@ extraEnvVars: &envVars
139141
value: "true"
140142
- name: HYKU_ROOT_HOST
141143
value: hyku-demo.$BASE_URL
144+
- name: HYKU_SHOW_BACKTRACE
145+
value: "true"
142146
- name: HYKU_USER_DEFAULT_PASSWORD
143147
value: password
144148
- name: SMTP_ADDRESS

ops/staging-deploy.tmpl.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ extraEnvVars: &envVars
125125
value: "false"
126126
- name: HYRAX_FITS_PATH
127127
value: /app/fits/fits.sh
128+
- name: HYRAX_VALKYRIE
129+
value: "true"
128130
- name: HYKU_ADMIN_HOST
129131
value: hyku-staging.$BASE_URL
130132
- name: HYKU_ADMIN_ONLY_TENANT_CREATION
@@ -139,6 +141,8 @@ extraEnvVars: &envVars
139141
value: "true"
140142
- name: HYKU_ROOT_HOST
141143
value: hyku-staging.$BASE_URL
144+
- name: HYKU_SHOW_BACKTRACE
145+
value: "true"
142146
- name: HYKU_USER_DEFAULT_PASSWORD
143147
value: password
144148
- name: NEGATIVE_CAPTCHA_SECRET

0 commit comments

Comments
 (0)