From e4bb815501a67192ed8b3667f168f0459847c94c Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 23 Dec 2022 02:29:17 -0500 Subject: Update Local Server to Run Using localtunnel --- runserver.sh | 3 ++- thatcomputerscientist/settings.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/runserver.sh b/runserver.sh index 464f6b6c..48583d3b 100755 --- a/runserver.sh +++ b/runserver.sh @@ -1,2 +1,3 @@ #!/bin/bash -exec sudo ./manage.py runserver localhost:80 \ No newline at end of file + +lt -p 8000 -s thatcomputerscientist & python3 manage.py runserver && fg \ No newline at end of file diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py index a3f6e7e8..bcbbd181 100644 --- a/thatcomputerscientist/settings.py +++ b/thatcomputerscientist/settings.py @@ -32,9 +32,9 @@ DEBUG = True # if os.getenv('ENVIRONMENT') == 'development' else False ALLOWED_HOSTS = ["*"] -CSRF_TRUSTED_ORIGINS = ['http://*.localhost', 'https://*.thatcomputerscientist.com', 'http://*.thatcomputerscientist.com'] -SESSION_COOKIE_DOMAIN = "localhost" if os.getenv('ENVIRONMENT') == 'development' else ".thatcomputerscientist.com" -DOMAIN_NAME = "localhost" if os.getenv('ENVIRONMENT') == 'development' else "thatcomputerscientist.com" +CSRF_TRUSTED_ORIGINS = ['https://*.thatcomputerscientist.loca.lt', 'https://*.thatcomputerscientist.com', 'http://*.thatcomputerscientist.com'] +SESSION_COOKIE_DOMAIN = "thatcomputerscientist.loca.lt" if os.getenv('ENVIRONMENT') == 'development' else ".thatcomputerscientist.com" +DOMAIN_NAME = "thatcomputerscientist.loca.lt" if os.getenv('ENVIRONMENT') == 'development' else "thatcomputerscientist.com" # Application definition -- cgit v1.2.3