static file issue, otherwise working

This commit is contained in:
MassiveAtoms
2021-03-02 00:09:15 -03:00
parent d7a385fd45
commit 330a36556c
11 changed files with 100 additions and 216 deletions

View File

@@ -0,0 +1,47 @@
{
"listeners": {
"*:80": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"uri": "/static/*"
},
"action": {
"share": "/usr/src/app/CalibreWebCompanion/static"
}
},
{
"action": {
"share": "/static/"
}
},
{
"match": {
"uri": "/download/*"
},
"action": {
"share": "/usr/src/app/calibredir/"
}
},
{
"action": {
"pass": "applications/django"
}
}
],
"applications": {
"django": {
"type": "python 3",
"path": "/usr/src/app/CalibreWebCompanion/",
"module": "CalibreWebCompanion.wsgi",
"environment": {
"DJANGO_SETTINGS_MODULE": "CalibreWebCompanion.settings",
"DB_ENGINE": "django.db.backends.sqlite3"
}
}
}
}

View File

@@ -0,0 +1,5 @@
path=/usr/src/app/CalibreWebCompanion
chown -R unit:unit /usr/src/app
python "${path}/manage.py" makemigrations
python "${path}/manage.py" migrate