Fix sessions being cleared after fat container is restarted (#9112)
This commit is contained in:
parent
93de065fa8
commit
eadaa65251
|
|
@ -141,6 +141,8 @@ configure_supervisord() {
|
||||||
fi
|
fi
|
||||||
if [[ "$APPSMITH_REDIS_URL" = "redis://127.0.0.1:6379" ]]; then
|
if [[ "$APPSMITH_REDIS_URL" = "redis://127.0.0.1:6379" ]]; then
|
||||||
cp "$SUPERVISORD_CONF_PATH/redis.conf" /etc/supervisor/conf.d/
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user