Skip to content

Commit f5e43f9

Browse files
committed
Merge pull request #759 from helgi/move_deis
Move various pieces out of `deis` to `api`
2 parents e242596 + 65fbc70 commit f5e43f9

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ test-style:
6767

6868
test-unit:
6969
cd rootfs \
70-
&& coverage run manage.py test --settings=deis.testing --noinput registry api \
70+
&& coverage run manage.py test --settings=api.settings.testing --noinput registry api \
7171
&& coverage report -m
7272

7373
test-unit-quick:
7474
cd rootfs \
75-
&& ./manage.py test --settings=deis.testing --noinput --parallel ${TEST_PROCS} --noinput registry api
75+
&& ./manage.py test --settings=api.settings.testing --noinput --parallel ${TEST_PROCS} --noinput registry api
7676

7777
test-functional:
7878
@echo "Implement functional tests in _tests directory"

rootfs/api/settings/__init__.py

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
ROOT_URLCONF = 'deis.urls'
8888

8989
# Python dotted path to the WSGI application used by Django's runserver.
90-
WSGI_APPLICATION = 'deis.wsgi.application'
90+
WSGI_APPLICATION = 'api.wsgi.application'
9191

9292
INSTALLED_APPS = (
9393
'django.contrib.auth',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import random
22
import string
3-
from deis.settings import * # noqa
3+
from api.settings.production import * # noqa
44

55
# A boolean that turns on/off debug mode.
66
# https://docs.djangoproject.com/en/1.9/ref/settings/#debug
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
WSGI config for deis project.
2+
WSGI config for Deis Workflow Controller project.
33
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
@@ -11,6 +11,6 @@
1111

1212
from django.core.wsgi import get_wsgi_application
1313

14-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "deis.settings")
14+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.settings.production")
1515

1616
application = get_wsgi_application()

rootfs/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ echo "Database Migrations:"
3030
sudo -E -u deis python /app/manage.py migrate --noinput
3131

3232
# spawn a gunicorn server in the background
33-
sudo -E -u deis gunicorn -c /app/deis/gunicorn/config.py deis.wsgi &
33+
sudo -E -u deis gunicorn -c /app/deis/gunicorn/config.py api.wsgi &
3434

3535
python /app/manage.py load_db_state_to_k8s
3636

rootfs/manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
if __name__ == "__main__":
8-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "deis.settings")
8+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.settings.production")
99

1010
from django.core.management import execute_from_command_line
1111

0 commit comments

Comments
 (0)