Skip to content
Snippets Groups Projects
Commit 3c2b4569 authored by Daniel Wysocki's avatar Daniel Wysocki
Browse files

Adding 'TIER' setting constant to each type of deployment

This is for easy programmatic access to the tier name.
parent aee17a51
No related branches found
No related tags found
1 merge request!99Adding 'TIER' setting constant to each type of deployment
# Settings for a test/dev GraceDB instance running in a container # Settings for a test/dev GraceDB instance running in a container
from .base import * from .base import *
TIER = "dev"
CONFIG_NAME = "DEV" CONFIG_NAME = "DEV"
# Debug settings # Debug settings
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# and overrides or adds to them. # and overrides or adds to them.
from .base import * from .base import *
TIER = "playground"
CONFIG_NAME = "USER TESTING" CONFIG_NAME = "USER TESTING"
# Debug settings # Debug settings
......
# Settings for a production GraceDB instance running in a container # Settings for a production GraceDB instance running in a container
from .base import * from .base import *
TIER = "production"
DEBUG = False DEBUG = False
# Turn on alerts # Turn on alerts
......
# Settings for a test/dev GraceDB instance running in a container # Settings for a test/dev GraceDB instance running in a container
from .base import * from .base import *
TIER = "test"
CONFIG_NAME = "TEST" CONFIG_NAME = "TEST"
# Debug settings # Debug settings
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
import socket import socket
from .base import * from .base import *
TIER = "dev"
CONFIG_NAME = "DEV" CONFIG_NAME = "DEV"
# Debug settings # Debug settings
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# from base.py settings) and overrides or adds to them. # from base.py settings) and overrides or adds to them.
from .base import * from .base import *
TIER = "playground"
CONFIG_NAME = "USER TESTING" CONFIG_NAME = "USER TESTING"
# Debug settings # Debug settings
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# settings) and overrides or adds to them. # settings) and overrides or adds to them.
from .base import * from .base import *
TIER = "production"
DEBUG = False DEBUG = False
# LVAlert Overseer settings # LVAlert Overseer settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment