diff options
| author | Bobby <[email protected]> | 2022-12-23 02:29:17 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-12-23 02:29:17 -0500 |
| commit | e4bb815501a67192ed8b3667f168f0459847c94c (patch) | |
| tree | c6ceafc0f5f968e01bd1b98479700a4e770ba1ce | |
| parent | 0be6c3ed871af60f3735b09de020aefe874fca21 (diff) | |
| download | thatcomputerscientist-e4bb815501a67192ed8b3667f168f0459847c94c.tar.xz thatcomputerscientist-e4bb815501a67192ed8b3667f168f0459847c94c.zip | |
Update Local Server to Run Using localtunnel
| -rwxr-xr-x | runserver.sh | 3 | ||||
| -rw-r--r-- | 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 |
