Skip to content

Commit 8bd2f1f

Browse files
authored
Merge pull request #434 from chaoss/rename/env_2
rename some additional incorrectly prefixed environment variables
2 parents 456f8b4 + f00ab28 commit 8bd2f1f

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

collectoss/api/gunicorn_conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
umask = 0o007
2323
reload = True
2424
# this satisfies the type checker
25-
is_dev = SystemEnv.get_bool("AUGUR_DEV", False)
25+
is_dev = SystemEnv.get_bool("COLLECTOSS_DEV", False)
2626

2727
if is_dev:
2828

@@ -42,7 +42,7 @@
4242
logs_directory = get_value('Logging', 'logs_directory')
4343

4444
# this syntax satisfies the type checker
45-
is_docker = SystemEnv.get_bool("AUGUR_DOCKER_DEPLOY", False)
45+
is_docker = SystemEnv.get_bool("COLLECTOSS_DOCKER_DEPLOY", False)
4646
accesslog = f"{logs_directory}/gunicorn.log"
4747
errorlog = f"{logs_directory}/gunicorn.log"
4848

collectoss/api/routes/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from flask import request, jsonify, current_app
77
import sqlalchemy as s
88

9-
# Disable the requirement for SSL by setting env["AUGUR_DEV"] = True
9+
# Disable the requirement for SSL by setting env["COLLECTOSS_DEV"] = True
1010
from collectoss.application.config import get_development_flag
1111
from collectoss.application.db.lib import get_session
1212
from collectoss.application.db.models import Config

collectoss/application/cli/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def start(ctx, development, port):
4848
raise e
4949

5050
if development:
51-
SystemEnv.set("AUGUR_DEV", "1")
51+
SystemEnv.set("COLLECTOSS_DEV", "1")
5252
logger.info("Starting in development mode")
5353

5454
try:

collectoss/application/cli/backend.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
from keyman.KeyClient import KeyClient, KeyPublisher
3434

35-
reset_logs = SystemEnv.get_bool("AUGUR_RESET_LOGS", True)
35+
reset_logs = SystemEnv.get_bool("COLLECTOSS_RESET_LOGS", True)
3636

3737
logger = SystemLogger("collectoss", reset_logfiles=reset_logs).get_logger()
3838

@@ -72,10 +72,10 @@ def start(ctx, disable_collection, development, pidfile, port):
7272
raise e
7373

7474
if development:
75-
SystemEnv.set("AUGUR_DEV", "1")
75+
SystemEnv.set("COLLECTOSS_DEV", "1")
7676
logger.info("Starting in development mode")
7777

78-
SystemEnv.set("AUGUR_PIDFILE", pidfile)
78+
SystemEnv.set("COLLECTOSS_PIDFILE", pidfile)
7979

8080
try:
8181
gunicorn_location = os.getcwd() + "/collectoss/api/gunicorn_conf.py"
@@ -87,10 +87,10 @@ def start(ctx, disable_collection, development, pidfile, port):
8787
if not port:
8888
port = get_value("Server", "port")
8989

90-
SystemEnv.set("AUGUR_PORT", str(port))
90+
SystemEnv.set("COLLECTOSS_PORT", str(port))
9191

9292
if disable_collection:
93-
SystemEnv.set("AUGUR_DISABLE_COLLECTION", "1")
93+
SystemEnv.set("COLLECTOSS_DISABLE_COLLECTION", "1")
9494

9595
core_worker_count = get_value("Celery", 'core_worker_count')
9696
secondary_worker_count = get_value("Celery", 'secondary_worker_count')

collectoss/application/cli/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def start(ctx, development):
7676
keypub.publish(key, "gitlab_rest")
7777

7878
if development:
79-
SystemEnv.set("AUGUR_DEV", "1")
79+
SystemEnv.set("COLLECTOSS_DEV", "1")
8080
logger.info("Starting in development mode")
8181

8282
core_worker_count = get_value("Celery", 'core_worker_count')

0 commit comments

Comments
 (0)