We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcae1ae commit 17ab332Copy full SHA for 17ab332
example_config.json
@@ -0,0 +1,12 @@
1
+{
2
+ "state": {
3
+ "host": "localhost",
4
+ "port": 6379
5
+ },
6
+ "structure": {
7
+ "module": "centrifuge.structure.sqlite",
8
+ "settings": {
9
+ "path": "centrifuge.db"
10
+ }
11
12
+}
wwc/wwc/scripts/initialize_cent_config.py
@@ -24,7 +24,11 @@ def section_template(section):
24
25
26
def load_config():
27
- with open("config.json") as f:
+ if os.path.isfile('config.json'):
28
+ filename = 'config.json'
29
+ else:
30
+ filename = 'example_config.json'
31
+ with open(filename) as f:
32
return json.loads(f.read())
33
34
0 commit comments