Updated the frontoffice dependency and added the script to collects stats for all the clients on prod.

pull/316/head
Ruslan Baidan 2020-11-17 14:39:50 +01:00
parent 336ec70ff8
commit 66b5d958b1
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
2 changed files with 23 additions and 4 deletions

8
composer.lock generated
View File

@ -4501,12 +4501,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/monarc-project/zm-client.git", "url": "https://github.com/monarc-project/zm-client.git",
"reference": "274200ba305ce451838af78b8ed8354bc8e87c04" "reference": "9dda6a8fe84e462eca08d4538b61a532d78e2053"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/monarc-project/zm-client/zipball/274200ba305ce451838af78b8ed8354bc8e87c04", "url": "https://api.github.com/repos/monarc-project/zm-client/zipball/9dda6a8fe84e462eca08d4538b61a532d78e2053",
"reference": "274200ba305ce451838af78b8ed8354bc8e87c04", "reference": "9dda6a8fe84e462eca08d4538b61a532d78e2053",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4585,7 +4585,7 @@
"issues": "https://github.com/monarc-project/zm-client/issues", "issues": "https://github.com/monarc-project/zm-client/issues",
"source": "https://github.com/monarc-project/zm-client/tree/feature/stats" "source": "https://github.com/monarc-project/zm-client/tree/feature/stats"
}, },
"time": "2020-11-17T10:19:09+00:00" "time": "2020-11-17T13:35:28+00:00"
}, },
{ {
"name": "monarc/phpword", "name": "monarc/phpword",

View File

@ -0,0 +1,19 @@
#! /usr/bin/env bash
# local use:
#for conf_file_path in /home/vagrant/monarc/config/*/local.php
for conf_file_path in /var/www/*/local.php
do
config_path=$(dirname "$conf_file_path")
export APP_CONF_DIR=$config_path
echo "[$(date)] Collecting stats for client: $config_path."
# local use:
#/home/vagrant/monarc/bin/console monarc:collect-stats >> "$config_path"/collect_stats.log
/var/lib/monarc/fo/bin/console monarc:collect-stats >> "$config_path"/collect_stats.log
echo "[$(date)] Finished."
done