static file issue, otherwise working
This commit is contained in:
47
deployment/entrypoints/config.json
Normal file
47
deployment/entrypoints/config.json
Normal 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"
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
5
deployment/entrypoints/start.sh
Normal file
5
deployment/entrypoints/start.sh
Normal 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
|
Reference in New Issue
Block a user