File tree 8 files changed +21
-16
lines changed
8 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,11 @@ AWS_ACCESS_KEY_ID=
11
11
AWS_SECRET_ACCESS_KEY=
12
12
AWS_DEFAULT_REGION=us-west-2
13
13
14
- #DJANGO_SENTRY_DSN=....
15
- #DJANGO_SENTRY_PUBLIC_DSN=....
16
-
17
- #DJANGO_STATSD_HOST=localhost
18
- #DJANGO_STATSD_PORT=8125
19
- #DJANGO_STATSD_NAMESPACE=
14
+ # Sentry is not used when doing local development.
15
+ #SENTRY_DSN=....
16
+ #SENTRY_PUBLIC_DSN=....
20
17
18
+ # Get these settings from Auth0 or some provider you use.
21
19
#DJANGO_OIDC_RP_CLIENT_ID=
22
20
#DJANGO_OIDC_RP_CLIENT_SECRET=
23
21
Original file line number Diff line number Diff line change 1
1
FROM tecken:deploy_base
2
2
3
- ENV DJANGO_CONFIGURATION=Dev
3
+ ENV DJANGO_CONFIGURATION=Localdev
4
4
5
5
EXPOSE $PORT
6
6
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ this to ``Prod`` and the ``Dockerfile.dev`` overrides it to ``Dev``.
31
31
# If stage
32
32
DJANGO_CONFIGURATION=Stage
33
33
34
+ # If development server
35
+ DJANGO_CONFIGURATION=Dev
36
+
34
37
You need to set a random ``DJANGO_SECRET_KEY ``. It should be predictably
35
38
random and a decent length:
36
39
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Mozilla Symbol Server is deployed in 3 different environments:
11
11
12
12
1. Production (https://symbols.mozilla.org SOON!)
13
13
14
- 2. Stage (DOMAIN TO BE DECIDED )
14
+ 2. Stage (https://symbols.stage.mozaws.net )
15
15
16
16
3. Dev (https://symbols.dev.mozaws.net)
17
17
Original file line number Diff line number Diff line change 9
9
10
10
if __name__ == '__main__' :
11
11
os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'tecken.settings' )
12
- os .environ .setdefault ('DJANGO_CONFIGURATION' , 'Dev ' )
12
+ os .environ .setdefault ('DJANGO_CONFIGURATION' , 'Localdev ' )
13
13
14
14
from configurations .management import execute_from_command_line
15
15
Original file line number Diff line number Diff line change 8
8
9
9
10
10
os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'tecken.settings' )
11
- os .environ .setdefault ('DJANGO_CONFIGURATION' , 'Dev ' )
11
+ os .environ .setdefault ('DJANGO_CONFIGURATION' , 'Localdev ' )
12
12
13
13
14
14
import configurations # noqa
Original file line number Diff line number Diff line change @@ -427,8 +427,8 @@ def LOGGING(self):
427
427
]
428
428
429
429
430
- class Dev (Base ):
431
- """Configuration to be used during development and base class
430
+ class Localdev (Base ):
431
+ """Configuration to be used during local development and base class
432
432
for testing"""
433
433
434
434
@classmethod
@@ -486,7 +486,7 @@ def VERSION(self):
486
486
]
487
487
488
488
489
- class Test (Dev ):
489
+ class Test (Localdev ):
490
490
"""Configuration to be used during testing"""
491
491
DEBUG = False
492
492
@@ -519,8 +519,8 @@ class Test(Dev):
519
519
}
520
520
521
521
522
- class Stage (Base ):
523
- """Configuration to be used in stage environment"""
522
+ class Dev (Base ):
523
+ """Configuration to be used in dev server environment"""
524
524
525
525
LOGGING_USE_JSON = True
526
526
@@ -596,6 +596,10 @@ def MARKUS_BACKENDS(self):
596
596
]
597
597
598
598
599
+ class Stage (Dev ):
600
+ """Configuration to be used in stage environment"""
601
+
602
+
599
603
class Prod (Stage ):
600
604
"""Configuration to be used in prod environment"""
601
605
Original file line number Diff line number Diff line change 11
11
"""
12
12
import os
13
13
os .environ .setdefault ('DJANGO_SETTINGS_MODULE' , 'tecken.settings' )
14
- os .environ .setdefault ('DJANGO_CONFIGURATION' , 'Dev ' )
14
+ os .environ .setdefault ('DJANGO_CONFIGURATION' , 'Localdev ' )
15
15
16
16
from configurations .wsgi import get_wsgi_application # noqa
17
17
You can’t perform that action at this time.
0 commit comments