mirror of
https://github.com/flancian/garden.git
synced 2026-07-31 11:36:19 +00:00
[[snapshot]]: 2021-05-16 19:25:53
Affected files: "config py.md"
This commit is contained in:
+6
-3
@@ -1,4 +1,7 @@
|
||||
```
|
||||
- Per-environment variables for [[agora server]] can be managed in `config.py` in [[go/agora-server/git]]
|
||||
- snapshot follows to illustrate
|
||||
|
||||
```
|
||||
class DefaultConfig(object):
|
||||
AGORA_PATH = os.getenv('AGORA_PATH', os.path.join('/home', getpass.getuser(), 'agora'))
|
||||
# standard: no trailing slashes anywhere in variables.
|
||||
@@ -18,7 +21,7 @@ class ProductionConfig(DefaultConfig):
|
||||
|
||||
# EXPERIMENTS
|
||||
ENABLE_CTZN = True
|
||||
ENABLE_STATS = True
|
||||
# ENABLE_STATS is False by default
|
||||
|
||||
class DevelopmentConfig(DefaultConfig):
|
||||
URL_BASE = "http://dev.anagora.org"
|
||||
@@ -27,4 +30,4 @@ class DevelopmentConfig(DefaultConfig):
|
||||
# EXPERIMENTS
|
||||
ENABLE_CTZN = True
|
||||
ENABLE_STATS = True
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user