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:
parent
0a06f9d69c
commit
24a50eb0e5
2 changed files with 3 additions and 0 deletions
deploy/cloudron
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue