Mise à jour de 'librephotos.sh'
This commit is contained in:
parent
8a08c02f50
commit
16f1ed36ef
|
@ -48,12 +48,6 @@ cat << 'EOF' > /usr/local/bin/librephotos-backend
|
|||
#! /bin/bash
|
||||
cd /usr/src/librephotos/
|
||||
export PYTHONUNBUFFERED=TRUE
|
||||
mkdir -p /logs
|
||||
|
||||
#! /bin/bash
|
||||
cd /usr/src/librephotos/
|
||||
export PYTHONUNBUFFERED=TRUE
|
||||
mkdir -p /logs
|
||||
export PYTHONUNBUFFERED=TRUE
|
||||
export BACKEND_HOST=localhost
|
||||
export DB_BACKEND=postgresql
|
||||
|
@ -79,6 +73,10 @@ export DEBUG=0
|
|||
export BASE_DATA=/var/lib/librephotos/
|
||||
export BASE_LOGS=/var/log/librephotos/
|
||||
|
||||
mkdir -p $BASE_LOGS
|
||||
mkdir -p $BASE_DATA/data_models/
|
||||
mkdir -p $BASE_DATA/data/nextcloud_media
|
||||
mkdir -p $BASE_DATA/protected_media/
|
||||
python3 image_similarity/main.py 2>&1 | tee $BASE_LOGS/gunicorn_image_similarity.log &
|
||||
python3 manage.py showmigrations | tee $BASE_LOGS/show_migrate.log
|
||||
python3 manage.py migrate | tee $BASE_LOGS/command_migrate.log
|
||||
|
|
Loading…
Reference in New Issue