Skip to content

Commit

Permalink
DEV: Parameterize offline page repository (#754)
Browse files Browse the repository at this point in the history
allow for a custom offline page repository
  • Loading branch information
featheredtoast authored Nov 9, 2023
1 parent f02a236 commit 13dc0c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/offline-page.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ env:
PRECOMPILE_ON_BOOT: 1
CREATE_DB_ON_BOOT: 1

params:
offline_page_repository: https://github.com/discourse/discourse-offline-page.git

run:
- replace:
filename: "/etc/nginx/conf.d/discourse.conf"
Expand All @@ -17,5 +20,5 @@ run:
}
- exec:
cmd: git clone https://github.com/discourse/discourse-offline-page.git /var/www/discourse-offline-page
cmd: git clone $offline_page_repository /var/www/discourse-offline-page
raise_on_fail: false

0 comments on commit 13dc0c7

Please sign in to comment.