mirror of
https://git.cloudron.io/cloudron/peertube-app.git
synced 2024-11-22 01:21:10 +00:00
set maxmemory-policy to noeviction to prevent warnings
This commit is contained in:
parent
73730f82fe
commit
902a3c34b3
1 changed files with 7 additions and 0 deletions
7
start.sh
7
start.sh
|
@ -82,6 +82,13 @@ update_config() {
|
|||
echo "==> Changing ownership"
|
||||
chown -R cloudron:cloudron /app/data /run/peertube /tmp/peertube
|
||||
|
||||
# Set eviction policy to prevent warnings - https://docs.bullmq.io/guide/going-to-production#max-memory-policy
|
||||
while ! REDISCLI_AUTH="${CLOUDRON_REDIS_PASSWORD}" redis-cli -h "${CLOUDRON_REDIS_HOST}" -p "${CLOUDRON_REDIS_PORT}" ping >/dev/null; do
|
||||
echo "==> Waiting for redis"
|
||||
sleep 5
|
||||
done
|
||||
REDISCLI_AUTH="${CLOUDRON_REDIS_PASSWORD}" redis-cli -h "${CLOUDRON_REDIS_HOST}" -p "${CLOUDRON_REDIS_PORT}" CONFIG SET maxmemory-policy noeviction
|
||||
|
||||
# cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh
|
||||
if [[ ! -f "/app/data/production.yaml" ]]; then
|
||||
echo "==> First run. creating config"
|
||||
|
|
Loading…
Reference in a new issue