calibre-web-companion/deployment/startupscript.py

12 lines
296 B
Python
Raw Normal View History

2020-08-15 14:00:25 +00:00
from os import system, chdir
2020-08-16 04:45:28 +00:00
# system("chown -R www:www /usr/src/app/calibredir")
# print("ownership of calibredir changed")
2020-08-15 14:00:25 +00:00
chdir("/usr/src/app/CalibreWebCompanion")
system("python ./manage.py makemigrations")
print("ran makemigrations")
system("python ./manage.py migrate")
print("migrate")