Skip to content

Commit da9add6

Browse files
committed
preparando o ambiente para build com vercel joanmdrs#65
1 parent b9bd951 commit da9add6

File tree

6 files changed

+34
-3
lines changed

6 files changed

+34
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ Dockerfile.local
5050

5151
# Diretório de migrações de banco de dados (opcional, se preferir não rastreá-las)
5252
# migrations/
53+
.vercel

academic_dev_flow/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# SECURITY WARNING: don't run with debug turned on in production!
2121
DEBUG = True
2222

23-
ALLOWED_HOSTS = ['127.0.0.1', 'labens.dct.ufrn.br']
23+
ALLOWED_HOSTS = ['127.0.0.1', 'academic-dev-flow.vercel.app']
2424
DOMAINS_WHITELIST = ALLOWED_HOSTS
2525

2626
CSRF_COOKIE_SECURE=config('CSRF_COOKIE_SECURE', default=False, cast=bool)

academic_dev_flow/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@
5656
path('academicflow-api/', RedirectView.as_view(url='/academicflow-api/admin/')),
5757
]
5858

59+
60+
5961

6062

academic_dev_flow/wsgi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'academic_dev_flow.settings')
1515

1616
application = get_wsgi_application()
17+
18+
app = application

requirements.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ asgiref==3.7.2
22
certifi==2024.2.2
33
cffi==1.16.0
44
charset-normalizer==3.3.2
5+
coreapi==2.3.3
6+
coreschema==0.0.4
57
coverage==7.6.1
68
cryptography==42.0.5
79
Deprecated==1.2.14
@@ -11,20 +13,31 @@ django-jazzmin==2.6.0
1113
django-markdown==0.8.4
1214
django-markdownx==3.0.1
1315
djangorestframework==3.14.0
16+
drf-yasg==1.21.8
1417
idna==3.6
18+
inflection==0.5.1
19+
itypes==1.2.0
20+
Jinja2==3.1.5
1521
Markdown==3.5.2
22+
MarkupSafe==3.0.2
23+
openapi-codec==1.3.2
24+
packaging==24.2
1625
pillow==10.2.0
17-
psycopg2==2.9.9
26+
psycopg==3.2.2
27+
psycopg2-binary==2.9.9
1828
pycparser==2.21
1929
PyGithub==2.3.0
2030
PyJWT==2.8.0
2131
PyNaCl==1.5.0
2232
python-decouple==3.8
2333
python-dotenv==1.0.1
2434
pytz==2024.1
35+
PyYAML==6.0.2
2536
requests==2.31.0
37+
simplejson==3.19.3
2638
sqlparse==0.4.4
2739
typing_extensions==4.10.0
2840
tzdata==2023.4
41+
uritemplate==4.1.1
2942
urllib3==2.2.1
30-
wrapt==1.16.0
43+
wrapt==1.16.0

vercel.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"builds": [{
3+
"src": "academic_dev_flow/wsgi.py",
4+
"use": "@vercel/python",
5+
"config": { "maxLambdaSize": "15mb", "runtime": "python3.12"}
6+
}],
7+
"routes": [
8+
{
9+
"src": "/(.*)",
10+
"dest": "academic_dev_flow/wsgi.py"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)