Changeset View
Changeset View
Standalone View
Standalone View
www/elasticsearch-hq/files/patch-elastichq_config_settings.py
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- elastichq/config/settings.py.orig 2018-03-07 18:52:00 UTC | |||||
+++ elastichq/config/settings.py | |||||
@@ -11,6 +11,7 @@ _search_paths = [ | |||||
'./elastichq/elastichq.json', | |||||
'./elastichq/config/elastichq.json', | |||||
'~/elastichq.json' | |||||
+ '/usr/local/etc/elastichq.json' | |||||
] | |||||
@@ -47,9 +48,10 @@ class BaseSettings: | |||||
class TestSettings(BaseSettings): | |||||
# top level | |||||
BASEPATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |||||
+ DBPATH = '/var/db/elastichq/' | |||||
# user configurable | |||||
- _sqlalchemy_database_uri = 'sqlite:///' + os.path.join(BASEPATH, 'test_elastichq.db') | |||||
+ _sqlalchemy_database_uri = 'sqlite:///' + os.path.join(DBPATH, 'test_elastichq.db') | |||||
_scheduler_api_enabled = False | |||||
_sqlalchemy_track_modifications = False | |||||
@@ -107,9 +109,10 @@ class TestSettings(BaseSettings): | |||||
class ProdSettings(BaseSettings): | |||||
# top level | |||||
BASEPATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |||||
+ DBPATH = '/var/db/elastichq/' | |||||
# user configurable | |||||
- _sqlalchemy_database_uri = 'sqlite:///' + os.path.join(BASEPATH, 'elastichq.db') | |||||
+ _sqlalchemy_database_uri = 'sqlite:///' + os.path.join(DBPATH, 'elastichq.db') | |||||
_scheduler_api_enabled = True | |||||
_sqlalchemy_track_modifications = False | |||||