Skip to content

Commit a44581f

Browse files
author
Kirk Wang
committed
⚙️ Use valkyrie and show backtrace on staging
This commit will add the HYRAX_VALKYRIE env var so Hyku will now use Valkyrie. It will also add a HYKU_SHOW_BACKTRACE env var so that the backtrace will be shown on the staging server.
1 parent 57108c2 commit a44581f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-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: 2 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

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)