File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
tests/frontendIntegration/django2x/mysite Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ set -x
1
2
coreInfo=` curl -s -X GET \
2
3
" https://api.supertokens.io/0/core/latest?password=$SUPERTOKENS_API_KEY &planType=FREE&mode=DEV&version=$1 " \
3
4
-H ' api-version: 0' `
@@ -50,9 +51,9 @@ cd supertokens-website
50
51
git checkout $2
51
52
cd ../project/tests/frontendIntegration/django2x
52
53
export PYTHONPATH=" ${PYTHONPATH} :/root/project"
53
- python3 manage.py runserver 8080 &
54
+ gunicorn mysite.wsgi --bind 0.0.0.0: 8080 &
54
55
pid=$!
55
- python3 manage.py runserver 8082 &
56
+ gunicorn mysite.wsgi --bind 0.0.0.0: 8082 &
56
57
pid2=$!
57
58
cd ../../../../supertokens-website/test/server
58
59
npm i -d
Original file line number Diff line number Diff line change 42
42
"django-cors-headers==2.0" ,
43
43
"django>=2,<3" ,
44
44
"django-stubs==1.9.0" ,
45
+ "gunicorn==20.1.0" ,
45
46
"python-dotenv==0.19.2" ,
46
47
]
47
48
),
Original file line number Diff line number Diff line change 61
61
# Application definition
62
62
63
63
INSTALLED_APPS = [
64
+ "corsheaders" , # Add corsheaders django app
64
65
"django.contrib.admin" ,
65
66
"django.contrib.auth" ,
66
67
"django.contrib.contenttypes" ,
You can’t perform that action at this time.
0 commit comments