Updated the frontoffice dependency and added the script to collects stats for all the clients on prod.
parent
336ec70ff8
commit
66b5d958b1
|
@ -4501,12 +4501,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/monarc-project/zm-client.git",
|
||||
"reference": "274200ba305ce451838af78b8ed8354bc8e87c04"
|
||||
"reference": "9dda6a8fe84e462eca08d4538b61a532d78e2053"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/monarc-project/zm-client/zipball/274200ba305ce451838af78b8ed8354bc8e87c04",
|
||||
"reference": "274200ba305ce451838af78b8ed8354bc8e87c04",
|
||||
"url": "https://api.github.com/repos/monarc-project/zm-client/zipball/9dda6a8fe84e462eca08d4538b61a532d78e2053",
|
||||
"reference": "9dda6a8fe84e462eca08d4538b61a532d78e2053",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4585,7 +4585,7 @@
|
|||
"issues": "https://github.com/monarc-project/zm-client/issues",
|
||||
"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",
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue