Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bin/emsch-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,16 @@ function configure (
echo "Warning: something doesn't work with Elasticms cache warming up !"
fi

if [[ ! -z ${EMS_METRIC_ENABLED} ]] && [[ ${EMS_METRIC_ENABLED,,} = true ]]; then
echo "Clear Elasticms metrics for [ $_name ] Skeleton Domain ..."
/opt/bin/$_name ems:metric:collect --clear
if [ $? -eq 0 ]; then
echo "Clear Elasticms metrics for [ $_name ] Skeleton Domain run successfully ..."
else
echo "Warning: something doesn't work with Elasticms metrics clearing !"
fi
fi

#if [ ! -z "${ENVIRONMENT_ALIAS}" ]; then
# echo "Found ENVIRONMENT_ALIAS environment variable."
# echo "Made simlink /opt/src/public/bundles/${ENVIRONMENT_ALIAS} to /opt/src/public/bundles/emsch_assets ..."
Expand Down