Fix sessions being cleared after fat container is restarted (#9112)

This commit is contained in:
Shrikant Sharat Kandula 2021-11-15 11:24:45 +05:30 committed by GitHub
parent 93de065fa8
commit eadaa65251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,8 @@ configure_supervisord() {
fi
if [[ "$APPSMITH_REDIS_URL" = "redis://127.0.0.1:6379" ]]; then
cp "$SUPERVISORD_CONF_PATH/redis.conf" /etc/supervisor/conf.d/
# Enable saving Redis session data to disk more often, so recent sessions aren't cleared on restart.
sed -i 's/^# save 60 10000$/save 60 1/g' /etc/redis/redis.conf
fi
}