aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-10 23:15:41 -0500
committerBobby <[email protected]>2022-11-10 23:15:41 -0500
commit0a9469f97326ecd44b93ad73dd1e6973b6685f22 (patch)
treebfce55ab3d5dc7182ffc749b556ad934ffcba374
parentbf40cfdb47b0e8d2809b1b6f7076fc608a4af36a (diff)
downloadthatcomputerscientist-0a9469f97326ecd44b93ad73dd1e6973b6685f22.tar.xz
thatcomputerscientist-0a9469f97326ecd44b93ad73dd1e6973b6685f22.zip
revert: depl
-rw-r--r--deploy.sh10
-rw-r--r--thatcomputerscientist/urls.py8
2 files changed, 0 insertions, 18 deletions
diff --git a/deploy.sh b/deploy.sh
deleted file mode 100644
index 1b309875..00000000
--- a/deploy.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!bin/bash
-
-cd /home/ubuntu/thatcomputerscientist
-pwd
-git pull
-python3 manage.py migrate
-python3 manage.py makemigrations
-cp ../.env .
-pkill gunicorn
-gunicorn --bind :8000 --workers 2 thatcomputerscientist.wsgi --daemon
diff --git a/thatcomputerscientist/urls.py b/thatcomputerscientist/urls.py
index 672c525d..51ecaa72 100644
--- a/thatcomputerscientist/urls.py
+++ b/thatcomputerscientist/urls.py
@@ -18,13 +18,6 @@ from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.http import HttpResponse
-import os
-BASE_DIR = settings.BASE_DIR
-
-def ci_view(request):
- # Run the deploy script in the base directory
- os.system(f"cd {BASE_DIR} && chmod +x deploy.sh && ./deploy.sh")
- return HttpResponse("Deployed! Test it out!")
urlpatterns = [
@@ -33,7 +26,6 @@ urlpatterns = [
path('users/', include('users.urls', namespace='users')),
path('blog-admin/', include('blog_admin.urls', namespace='blog-admin')),
path('source/', include(('dev_status.urls', 'dev_status'), namespace='dev_status')),
- path('ci/', ci_view),
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)