Skip to content

Commit

Permalink
Install specific tag and set version env var for display on the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Oct 8, 2024
1 parent e3f156d commit 8e37994
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions inventory/group_vars/htr_staging/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ application_url: https://test-htr.princeton.edu

# Git repository (on gitlab instead of github, so need to specify the full repo url)
repo_url: https://gitlab.com/scripta/escriptorium.git
# staging default branch is develop; install a specific tag for testing/documenting
gitref: dev-0.14.2


# repo variable is still needed for checkout file structure
repo: scripta/escriptorium
# name of django application
Expand Down Expand Up @@ -64,6 +68,7 @@ django_local_settings_template: "escriptorium_settings.py.j2"

deploy_env_vars:
DJANGO_SETTINGS_MODULE: escriptorium.local_settings
VERSION_DATE: "{{ gitref }}" # deployed version, for display on home page

# single deploy path - no versioning, no nesting
deploy: "{{ install_root }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/django/templates/escriptorium_settings.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ PUCAS_LDAP.update({
"ldap3.princeton.edu",
"ldap4.princeton.edu",
"ldap5.princeton.edu"
,
],
"SEARCH_BASE": "o=Princeton University,c=US",
"SEARCH_FILTER": "(uid=%(user)s)",
})
Expand Down

0 comments on commit 8e37994

Please sign in to comment.