Skip to content

Commit 1d27013

Browse files
committed
Updated: python version in vercel files
1 parent df9b035 commit 1d27013

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

build.sh

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

33
echo "Upgrade pip..."
4-
python -m pip install --upgrade pip
4+
python3.9 -m pip install --upgrade pip
55

66
echo "Installing dependencies..."
7-
python -m pip install -r requirements.txt
7+
python3.9 -m pip install -r requirements.txt
88

99
# echo "Migrating database..."
10-
# python manage.py makemigrations --noinput
11-
# python manage.py migrate --noinput
10+
# python3.9 manage.py makemigrations --noinput
11+
# python3.9 manage.py migrate --noinput
1212

1313
# echo "Creating superuser..."
1414

1515
# DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL}
1616
# DJANGO_SUPERUSER_USERNAME=${DJANGO_SUPERUSER_USERNAME}
1717
# DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
1818

19-
# python manage.py createsuperuser \
19+
# python3.9 manage.py createsuperuser \
2020
# --email $DJANGO_SUPERUSER_EMAIL \
2121
# --noinput || true
2222

@@ -27,4 +27,4 @@ echo "Running npm Production..."
2727
pnpm collect
2828

2929
echo "Collecting static files..."
30-
python src/manage.py collectstatic --noinput --clear
30+
python3.9 src/manage.py collectstatic --noinput --clear

vercel.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"builds": [
44
{
55
"src": "main.py",
6-
"use": "@vercel/python"
6+
"use": "@vercel/python",
7+
"config": {
8+
"runtime": "python3.9"
9+
}
710
},
811
{
912
"src": "build.sh",

0 commit comments

Comments
 (0)