Skip to content

Commit 7096229

Browse files
committed
Exposing into environment variables:
- Disqus forum - Author URL So they can be changed with staging variables.
1 parent 635071a commit 7096229

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bin/env_vars.sh.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export DISQUS_API_PUBLIC=""
1515
export DISQUS_SSO_ID=""
1616
export DISQUS_SSO_USERNAME=""
1717
export DISQUS_SSO_EMAIL=""
18+
export DISQUS_FORUM=""
19+
20+
export AUTHOR_URL=""
1821

1922
export EMAIL=""
2023

codebender_testing/disqus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import re
1313

1414

15-
FORUM = 'codebender-cc'
16-
AUTHOR_URL = 'https://codebender.cc/user/codebender'
15+
FORUM = os.getenv('DISQUS_FORUM', 'codebender-cc')
16+
AUTHOR_URL = os.getenv('AUTHOR_URL', 'https://codebender.cc/user/codebender')
1717
DISQUS_REQUESTS_PER_HOUR = 1000
1818
DISQUS_WAIT = (DISQUS_REQUESTS_PER_HOUR / 60) / 60
1919
CHANGE_LOG = 'examples_compile_log.json'

0 commit comments

Comments
 (0)