fixed nginx, bug in context processors

This commit is contained in:
TinyAtoms
2020-08-16 01:45:28 -03:00
parent 9843299ef6
commit 49ca4bccdc
5 changed files with 188 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ http {
# # MASSIVEATOMS
location /download/ {
alias "/usr/src/app/calibredir";
alias "/usr/src/app/calibredir/";
# Never forget the fact that this little statement being root instead of alias caused us to lose more than a day troubleshooting
}

View File

@@ -1,8 +1,8 @@
from os import system, chdir
system("chown -R www:www /usr/src/app/calibredir")
print("ownership of calibredir changed")
# system("chown -R www:www /usr/src/app/calibredir")
# print("ownership of calibredir changed")
chdir("/usr/src/app/CalibreWebCompanion")
system("python ./manage.py makemigrations")
print("ran makemigrations")