1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 04:49:37 +02:00
This commit is contained in:
Sean Morley 2024-07-08 11:58:21 -04:00
parent 97f3386822
commit 86824b24f0
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# build_files.sh
pip install -r requirements.txt
python3.9 manage.py collectstatic --noinput

View file

@ -122,6 +122,9 @@ MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
STATIC_ROOT = os.path.join(BASE_DIR, "ui/staticfiles")
# TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
TEMPLATES = [

View file

@ -0,0 +1,28 @@
{
"version": 2,
"builds": [
{
"src": "demo/wsgi.py",
"use": "@vercel/python",
"config": { "maxLambdaSize": "15mb", "runtime": "python3.9" }
},
{
"src": "build_files.sh",
"use": "@vercel/static-build",
"config": {
"distDir": "ui/staticfiles"
}
}
],
"routes": [
{
"src": "/static/(.*)",
"dest": "/static/$1"
},
{
"src": "/(.*)",
"dest": "demo/wsgi.py"
}
],
"outputDirectory": "ui/staticfiles"
}