From aabf48b52a187716ae744b34634b9d0cfd225c9d Mon Sep 17 00:00:00 2001 From: "valentin.pocotilenco" <valentin.pocotilenco@renam.md> Date: Tue, 9 May 2023 10:50:41 +0300 Subject: [PATCH] update config and description --- README.md | 50 +++++++++++++++++++++++++++++++-------------- config/database.php | 2 -- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 989ceba..40be796 100755 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # EduGAIN Attribute Release Check -##Application description +## Application description -##Application deployment +## Application deployment -###Application requirements for web interface deployment +### Application requirements for web interface deployment 1. Web server Apache / nginx 2. PHP 7.4+ 3. Database manager mysql / mariadb 4. Composer -###Applications setup example +### Applications setup example 1. nginx setup example - example of nginx configuration for application @@ -76,17 +76,37 @@ GRANT ALL ON earc.* TO 'earc_user'@'localhost'; GRANT FILE ON earc.* TO 'earc_user'@'localhost'; ``` -###Application setup +### Application setup -1. composer install (i have used local composer.phar) -2. copy .env from .env.example -3. generate key : php artisan key:generate -4. clear cache : php artisan config:cache ------- -5. simplesaml config : !!!to do automatically -6. simplesaml sp-remote-metadata : !!!to do automatically +0. clone application to /var/www/earc +1. install vendor +- from application root run +``` +composer install +``` +2. create and populate application's .env file +- from application root run +``` +cp .env.example .env +php artisan key:generate +``` +- clear cached configuration +``` +php artisan config:cache +``` +3. populate basic configuration for simpleSAMLphp +- from application root run +``` +cp vendor/simplesamlphp/simplesamlphp/config-templates/config.php vendor/simplesamlphp/simplesamlphp/config/config.php +``` +4. simplesaml sp-remote-metadata : !!!to do automatically currently found here : technical-test>edugain.org /var/www/earc-deployed/releases/1541529858 ------ -7. database config edit -8. database populate : php artisan migrate -9. voila \ No newline at end of file +7. configure and populate database +- update database configuration file : config/database.php +- populate database using prepared migration, from application root run +``` +php artisan migrate +``` + +9. check application \ No newline at end of file diff --git a/config/database.php b/config/database.php index 0ec83b3..f3ab567 100755 --- a/config/database.php +++ b/config/database.php @@ -56,8 +56,6 @@ return [ 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', - 'strict' => false, - 'engine' => null, 'modes' => [ 'ONLY_FULL_GROUP_BY', 'STRICT_TRANS_TABLES', -- GitLab