Skip to content

Commit 2b28427

Browse files
committed
fix: updated python version in vercel files
1 parent 0a90ce2 commit 2b28427

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
#!/bin/bash
22

33
echo "Installing dependencies..."
4-
python3.9 -m pip install -r requirements.txt
4+
python3 -m pip install -r requirements.txt
55
echo "Successfully installed dependencies."
66

77
echo "Running database migrations..."
88
echo "Migrating database..."
9-
python3.9 manage.py migrate --noinput
9+
python3 manage.py migrate --noinput
1010
echo "Database migrated."
1111

1212
echo "Creating superuser..."
1313
DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL}
1414
DJANGO_SUPERUSER_USERNAME=${DJANGO_SUPERUSER_USERNAME}
1515
DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
16-
python3.9 manage.py createsuperuser \
16+
python3 manage.py createsuperuser \
1717
--email $DJANGO_SUPERUSER_EMAIL \
1818
--username $DJANGO_SUPERUSER_USERNAME \
1919
--noinput || true
2020
echo "Superuser created. If it already exists, this is ignored."
2121

2222
echo "Collecting static files..."
23-
python3.9 manage.py collectstatic --noinput
23+
python3 manage.py collectstatic --noinput
2424
echo "Static files collected successfully."

vercel.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"builds": [
44
{
55
"src": "app.py",
6-
"use": "@vercel/python",
7-
"config": { "maxLambdaSize": "15mb", "runtime": "python3.9" }
6+
"use": "@vercel/python"
87
},
98
{
109
"src": "build.sh",

0 commit comments

Comments
 (0)