Commit 9bc8a205 authored by Tanner Prestegard's avatar Tanner Prestegard

Require Twilio credentials for containerized deployment

parent 67c84adc
......@@ -87,6 +87,8 @@ RUN DJANGO_SETTINGS_MODULE=${SETTINGS_MODULE} \
LVALERT_PASSWORD=fake_password \
LVALERT_SERVER=fake_server \
LVALERT_OVERSEER_PORT=2 \
DJANGO_TWILIO_ACCOUNT_SID=fake_sid \
DJANGO_TWILIO_AUTH_TOKEN=fake_token \
python manage.py collectstatic --noinput
RUN rm -rf /app/logs/* /app/project_data/*
......
......@@ -48,9 +48,13 @@ if lvalert_password is None:
raise ImproperlyConfigured('Could not get LVAlert password from envvars.')
# Get Twilio account information from environment
# FIXME
TWILIO_ACCOUNT_SID = os.environ.get('DJANGO_TWILIO_ACCOUNT_SID', 'abcd')
TWILIO_AUTH_TOKEN = os.environ.get('DJANGO_TWILIO_AUTH_TOKEN', 'abcd')
TWILIO_ACCOUNT_SID = os.environ.get('DJANGO_TWILIO_ACCOUNT_SID', None)
if TWILIO_ACCOUNT_SID is None:
raise ImproperlyConfigured('Could not get Twilio acct SID from envvars.')
TWILIO_AUTH_TOKEN = os.environ.get('DJANGO_TWILIO_AUTH_TOKEN', None)
if TWILIO_AUTH_TOKEN is None:
raise ImproperlyConfigured('Could not get Twilio auth token from envvars.')
# Database settings -----------------------------------------------------------
DATABASES = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment