install final

This commit is contained in:
2026-04-25 17:39:55 +02:00
parent ff4c6ace66
commit 831188830c
13 changed files with 92 additions and 25 deletions
+17 -4
View File
@@ -8,22 +8,35 @@ echo
ETC="$(pwd)"
APP_DIR=" ../test_tube_scanner"
echo "---- Lancer reductstore ..."
sudo supervisorctl reread
sudo supervisorctl restart reductstore
cd $APP_DIR
echo "migration de la base de données ..."
echo "---- Création des répertoires media ..."
mkdir -p $APP_DIR/media/images $APP_DIR/media/simulation
mkdir -p $APP_DIR/logs
touch $APP_DIR/logs/celery.log $APP_DIR/logs/test_tube.log
echo "---- Migration de la base de données ..."
./manage.py migrate
./manage.py makemigrations
./manage.py migrate
echo "User / django_celery_beat ..."
echo "---- User / django_celery_beat ..."
./manage.py init_data
echo "Tables ..."
echo "---- Tables ..."
./manage.py loaddata $ETC/db/configuration.json
./manage.py loaddata $ETC/db/well.json
./manage.py loaddata $ETC/db/multiwell.json
./manage.py loaddata $ETC/db/welposition.json
echo "---- start test_tube:*"
echo
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl restart test_tube:*
echo
echo "=== Installation terminée ==="