export redis & memcahced env vars

Signed-off-by: André Bauer <andre.bauer@staffbase.com>
This commit is contained in:
André Bauer 2021-10-05 22:38:10 +02:00
parent 701627f9c6
commit 6413490570

View File

@ -46,6 +46,9 @@ if [ "$1" = 'zammad-init' ]; then
# shellcheck disable=SC2086
rsync -a ${RSYNC_ADDITIONAL_PARAMS} "${ZAMMAD_TMP_DIR}"/public/assets/images/ "${ZAMMAD_DIR}"/public/assets/images
export MEMCACHE_SERVERS="${MEMCACHE_SERVERS}"
export REDIS_URL="${REDIS_URL}"
until (echo > /dev/tcp/"${POSTGRESQL_HOST}"/"${POSTGRESQL_PORT}") &> /dev/null; do
echo "zammad railsserver waiting for postgresql server to be ready..."
sleep 5
@ -144,6 +147,9 @@ if [ "$1" = 'zammad-railsserver' ]; then
cd "${ZAMMAD_DIR}"
export MEMCACHE_SERVERS="${MEMCACHE_SERVERS}"
export REDIS_URL="${REDIS_URL}"
echo "starting railsserver... with WEB_CONCURRENCY=${ZAMMAD_WEB_CONCURRENCY}"
#shellcheck disable=SC2101
@ -157,6 +163,9 @@ if [ "$1" = 'zammad-scheduler' ]; then
cd "${ZAMMAD_DIR}"
export MEMCACHE_SERVERS="${MEMCACHE_SERVERS}"
export REDIS_URL="${REDIS_URL}"
echo "starting scheduler..."
exec bundle exec script/scheduler.rb run
@ -169,6 +178,9 @@ if [ "$1" = 'zammad-websocket' ]; then
cd "${ZAMMAD_DIR}"
export MEMCACHE_SERVERS="${MEMCACHE_SERVERS}"
export REDIS_URL="${REDIS_URL}"
echo "starting websocket server..."
exec bundle exec script/websocket-server.rb -b 0.0.0.0 -p "${ZAMMAD_WEBSOCKET_PORT}" start