Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheena Puthanpurayil committed Nov 4, 2021
1 parent a931fd5 commit fd29121
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
7 changes: 7 additions & 0 deletions app_config.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
KAFKA_BROKERS=<>
SECURITY_PROTOCOL=<>
ELASTIC_SERVICE_NAME=<>
ELASTIC_SECRET_TOKEN=<>
ELASTIC_SERVER_URL=<>
SECRET_KEY=<>
SENTRY_DSN=<>
2 changes: 1 addition & 1 deletion platform_in/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /project
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV FLASK_ENV production
ENV APP_SETTINGS project.config.ProductionConfig
ENV APP_SETTINGS app.config.ProductionConfig

# add and install requirements
COPY requirements.txt .
Expand Down
8 changes: 4 additions & 4 deletions platform_in/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_env_variable(name):

class Config(object):

SECRET_KEY = os.environ.get("SECRET_KEY") or "super-secret-key"
SECRET_KEY = os.environ.get("SECRET_KEY")
DEBUG = True
CSRF_ENABLED = True

Expand Down Expand Up @@ -43,17 +43,17 @@ class Config(object):

class ProductionConfig(Config):
DEBUG = False
SECRET_KEY = os.environ.get("SECRET_KEY") or "prod-secret-key"
SECRET_KEY = os.environ.get("SECRET_KEY")


class DevelopmentConfig(Config):
DEVELOPMENT = True
TESTING = False
DEBUG = True
SECRET_KEY = os.environ.get("SECRET_KEY") or "dev-secret-key"
SECRET_KEY = os.environ.get("SECRET_KEY")
# ELASTIC_APM['DEBUG']=True


class TestingConfig(Config):
TESTING = True
SECRET_KEY = os.environ.get("SECRET_KEY") or "test-secret-key"
SECRET_KEY = os.environ.get("SECRET_KEY")
6 changes: 0 additions & 6 deletions platform_in/avro/vehiclecharging.avsc

This file was deleted.

0 comments on commit fd29121

Please sign in to comment.