forked from metacademy/metacademy-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-template.py
31 lines (23 loc) · 1.17 KB
/
config-template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from os import path
META_TOP_LEVEL = path.realpath('..')
CONTENT_PATH = path.join(META_TOP_LEVEL, 'metacademy-content')
# change this path to specify a different local database directory
TOP_DB_PATH = path.join(META_TOP_LEVEL, 'local_dbs')
CONTENT_INDEX_PATH = path.join(TOP_DB_PATH, 'content_index') # directory that contains the concepts index for content search
APP_SERVER_SEARCH_INDEX_PATH = path.join(TOP_DB_PATH, 'app_index') # directory that contains the index for app server search
DJANGO_DB_FILE = path.join(TOP_DB_PATH, 'django_db', 'db.sqlite')
# No JS Concept Cache
NOJS_CONCEPT_CACHE_PATH = path.join(META_TOP_LEVEL, 'nojs_concept_cache') # WARNING: must also change in index_concepts.js
# settings when running django development server
CONTENT_SERVER_IP = '0.0.0.0' # set to 0.0.0.0 to access externally
CONTENT_SERVER_PORT = 9090
FRONTEND_SERVER_IP = '0.0.0.0' # set to 0.0.0.0 to access externally
FRONTEND_SERVER_PORT = 8080
# Content/App-server Debug level
DEBUG = True
# hack to obtain ports in bash script
if __name__ == "__main__":
print CONTENT_SERVER_IP
print CONTENT_SERVER_PORT
print FRONTEND_SERVER_IP
print FRONTEND_SERVER_PORT