From 8df97082584fc87a1e103fc8df399681eb47f434 Mon Sep 17 00:00:00 2001 From: DocArmoryTech Date: Thu, 28 Oct 2021 22:23:38 +0100 Subject: [PATCH 1/3] Added missing 'Cerebrate' section Second part of resolution to Issue #75 Added missing Cerebrate config section to resolved the following error: ``` warning: Warning (2): in_array() expects parameter 2 to be array, null given in [/var/www/cerebrate/src/Controller/Component/Navigation/sidemenu.php, line 130] Request URL: /users/login Referer URL: http://127.0.0.1:8000/users/login?redirect=%2F Client IP: 127.0.0.1 ``` --- config/app_local.example.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/app_local.example.php b/config/app_local.example.php index 87b1568..1ec0f4a 100644 --- a/config/app_local.example.php +++ b/config/app_local.example.php @@ -99,4 +99,8 @@ return [ 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null), ], ], + 'Cerebrate' => [ + 'open' => [], + 'dark' => 0 + ] ]; From 27c2d07e3ccdf552d728d4a85561a92432825a12 Mon Sep 17 00:00:00 2001 From: DocArmoryTech Date: Thu, 28 Oct 2021 22:56:25 +0100 Subject: [PATCH 2/3] Keep composer happy with permissions partial resolution to issue #75 create/initialise a `/var/www/.composer` director to keep composer happy and explicitly tell sudo to set the home dir `-H` --- INSTALL/INSTALL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/INSTALL/INSTALL.md b/INSTALL/INSTALL.md index a962de1..49948e8 100644 --- a/INSTALL/INSTALL.md +++ b/INSTALL/INSTALL.md @@ -32,8 +32,10 @@ sudo -u www-data git clone https://github.com/cerebrate-project/cerebrate.git /v Run composer ```bash +mkdir -p /var/www/.composer +sudo chown www-data:www-data /var/www/.composer cd /var/www/cerebrate -sudo -u www-data composer install +sudo -H -u www-data composer install ``` Create a database for cerebrate From f10e0225634ece299a4a52b9ace2f6292b55c853 Mon Sep 17 00:00:00 2001 From: DocArmoryTech Date: Thu, 28 Oct 2021 22:58:38 +0100 Subject: [PATCH 3/3] Create logs dir --- logs/.gitkeep | 1 + 1 file changed, 1 insertion(+) create mode 100644 logs/.gitkeep diff --git a/logs/.gitkeep b/logs/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/logs/.gitkeep @@ -0,0 +1 @@ +