1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-11 07:51:20 +00:00

store redis dump in the writeable data directory

This commit is contained in:
Bram Wiepjes 2021-02-18 14:05:23 +01:00
parent 0a06f9d69c
commit 24a50eb0e5
2 changed files with 3 additions and 0 deletions
deploy/cloudron

View file

@ -40,6 +40,7 @@ USER root
RUN chown -R cloudron:cloudron /app/code
RUN sed -i 's/daemonize no/daemonize yes\nbind 127.0.0.1/g' /etc/redis/redis.conf
RUN sed -i 's/dir \/var\/lib\/redis/dir \/app\/data\/redis/g' /etc/redis/redis.conf
RUN ln -sf /dev/stdout /var/log/redis/redis-server.log
ADD supervisor.conf /etc/supervisor/conf.d/supervisor.conf

View file

@ -7,6 +7,8 @@ if [[ ! -f /app/data/.secret ]]; then
fi
source /app/data/.secret
mkdir -p /app/data/redis
echo "==> Executing database migrations"
/app/code/env/bin/python /app/code/baserow/backend/src/baserow/manage.py migrate --settings=cloudron.settings