PHRAS-3494 fix typo

This commit is contained in:
nmaillat
2021-07-30 12:58:04 +02:00
parent 952d46dcf4
commit d7a51164bf
3 changed files with 8 additions and 10 deletions

14
.env
View File

@@ -149,7 +149,7 @@ PHRASEANET_SMTP_SECURE_MODE=null
PHRASEANET_SMTP_USER=
PHRASEANET_SMTP_PASSWORD=
# Phraseanet Workers setting
# Phraseanet Workers and Scheduler setting
# PHRASEANET_EXPLODE_WORKER define how many process are launched in the "worker" container
# "0" only one process is launched inside the container with no specializing,
@@ -161,6 +161,11 @@ PHRASEANET_SMTP_PASSWORD=
# PHRASEANET_WORKERS_LAUNCH_METHOD="supervisor" : for launch it with supervisor.
# PHRASEANET_WORKERS_LAUNCH_METHOD= : for launch phraseanet workers with a "bin/console"
# Old Phraseanet task planner AKA "Phraseanet scheduler"
# To launch the "scheduler" container, add docker-compose.scheduler.yml to env COMPOSE_FILE
# Launch this container only if you need to use the old Phraseanet tasks.
PHRASEANET_EXPLODE_WORKER=1
PHRASEANET_WORKERS_LAUNCH_METHOD=
@@ -180,14 +185,7 @@ PHRASEANET_WORKER_validationReminder=1
PHRASEANET_WORKER_webhook=1
PHRASEANET_WORKER_writeMetadatas=1
# Old Phraseanet task planner AKA "Phraseanet scheduler"
# This part is about the launch of a "Phraseanet worker" container in "Phraseanet scheduler" mode.
# Launch this container only if you need to use the old Phraseanet tasks.
# To launch the "scheduler" container, add docker-compose.scheduler.yml to COMPOSE_FILE
# PHRASEANET_SCHEDULER=0 the Phraseanet scheduler is not launched in scheduler container
# PHRASEANET_SCHEDULER=1 the Phraseanet scheduler is launched in scheduler container
PHRASEANET_SCHEDULER=1
# Locale setting
LC_MESSAGES=C.UTF-8

View File

@@ -33,6 +33,7 @@ services:
- LC_CTYPE=C.UTF-8
- LC_TIME=C.UTF-8
- LC_NAME=C.UTF-8
- TEST_NM=
- PHRASEANET_SCHEDULER
- IMAGEMAGICK_POLICY_VERSION
- IMAGEMAGICK_POLICY_WIDTH

View File

@@ -61,13 +61,12 @@ fi
rm -rf bin/run-worker.sh
if [ ! -z "$PHRASEANET_SCHEDULER" ] && [ ${PHRASEANET_SCHEDULER} == "1" ]; then
if [ ! -z "$PHRASEANET_SCHEDULER" ] ; then
command="bin/console task-manager:scheduler:run"
echo $command >> bin/run-worker.sh
echo "Phraseanet workers container will be launched in Scheduler mode with bin/console task-manager:scheduler:run"
else
if [ ! -z "$PHRASEANET_EXPLODE_WORKER" ] && [ ${PHRASEANET_EXPLODE_WORKER} == "1" ]; then
if [ ! -z "$PHRASEANET_WORKERS_LAUNCH_METHOD" ] && [ ${PHRASEANET_WORKERS_LAUNCH_METHOD} == "supervisor" ]; then