Skip to content

Commit 05b7904

Browse files
committed
rename api to server as this is the django default and should be less confusing
1 parent f4418aa commit 05b7904

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

docker/server/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ if [ "${APP_ENV^^}" = "PRODUCTION" ]; then
4141

4242
# Run Gunicorn / Django
4343
printf "\n" && echo " Running Gunicorn / Django"
44-
echo "Running: gunicorn api.wsgi -b 0.0.0.0:8081 --workers=6 --keep-alive 20 --log-file=- --log-level debug --access-logfile=/var/log/accesslogs/gunicorn --capture-output --timeout 50"
45-
uv run gunicorn api.wsgi -b 0.0.0.0:8081 --workers=6 --keep-alive 20 --log-file=- --log-level debug --access-logfile=/var/log/accesslogs/gunicorn --capture-output --timeout 50
44+
echo "Running: gunicorn server.wsgi -b 0.0.0.0:8081 --workers=6 --keep-alive 20 --log-file=- --log-level debug --access-logfile=/var/log/accesslogs/gunicorn --capture-output --timeout 50"
45+
uv run gunicorn server.wsgi -b 0.0.0.0:8081 --workers=6 --keep-alive 20 --log-file=- --log-level debug --access-logfile=/var/log/accesslogs/gunicorn --capture-output --timeout 50
4646
fi

server/manage.py

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

88
def main():
99
"""Run administrative tasks."""
10-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.settings")
10+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "server.settings")
1111
try:
1212
from django.core.management import execute_from_command_line
1313
except ImportError as exc:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
if FRONTEND_URL:
6969
CORS_ALLOWED_ORIGINS.append(FRONTEND_URL)
7070

71-
ROOT_URLCONF = "api.urls"
71+
ROOT_URLCONF = "server.urls"
7272

7373
TEMPLATES = [
7474
{
@@ -86,7 +86,7 @@
8686
},
8787
]
8888

89-
WSGI_APPLICATION = "api.wsgi.application"
89+
WSGI_APPLICATION = "server.wsgi.application"
9090

9191

9292
# Database
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020

2121
urlpatterns = [
2222
path("admin/", admin.site.urls),
23-
path("api/healthcheck/", include(("healthcheck.urls"))),
23+
path("api/healthcheck/", include("healthcheck.urls")),
2424
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
from django.core.wsgi import get_wsgi_application
1313

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

1616
application = get_wsgi_application()

0 commit comments

Comments
 (0)