From 0eb6e773928232ffb366e63e469e634fd0230611 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 10 Feb 2017 15:22:23 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20et=20simplification=20de?= =?UTF-8?q?=20la=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README | 62 +++++++++- docs/VHOST | 117 ------------------ docs/config/{.user.dev.ini => .user.ini} | 0 .../{application.dev.ini => application.ini} | 0 4 files changed, 57 insertions(+), 122 deletions(-) delete mode 100644 docs/VHOST rename docs/config/{.user.dev.ini => .user.ini} (100%) rename docs/config/{application.dev.ini => application.ini} (100%) diff --git a/docs/README b/docs/README index ce4b24fe..ae04429b 100644 --- a/docs/README +++ b/docs/README @@ -3,16 +3,58 @@ WebService - Créer le vhost, voir le fichier VHOST pour les exemples + + ServerName webservice.sd.dev + AddDefaultCharset utf-8 + + + XSendFile On + XSendFilePath /home/vhosts/webservice/shared + + + DocumentRoot /home/vhosts/webservice/public + + EnableSendfile Off + AllowOverride none + Require all granted + + Order allow,deny + Deny from all + + + RewriteEngine On + RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR] + RewriteCond %{REQUEST_FILENAME} -s [OR] + RewriteCond %{REQUEST_FILENAME} -l [OR] + RewriteCond %{REQUEST_FILENAME} -d + RewriteRule ^.*$ - [NC,L] + RewriteRule ^.*$ index.php [NC,L] + + + + + + RewriteEngine Off + + + + # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. + LogLevel error + ErrorLog ${APACHE_LOG_DIR}/webservice-error.log + CustomLog ${APACHE_LOG_DIR}/webservice-access.log combined + + - Installer les librairies avec composer $ composer install + - Configurer l'application La config (fichier application.ini) est à placer dans "application/configs/" - Exemple de la config dans "docs/config/application.ini" - (Modifier selon les besoins) + Exemple de la config dans "docs/config/application.ini" (Modifier selon les besoins) + - APPLICATION_ENV @@ -25,6 +67,19 @@ WebService Cette variable est accessible dans PHP. + . mod_php + + Add in + SetEnv APPLICATION_ENV "development" + +. php-fpm + + Add a file in document root path (public/) a file .user.ini + env[APPLICATION_ENV] = "development" + + See the .user.ini file + + - Créer les repertoires de données nécessaires [WORKSPACE]/data/webservice/ @@ -106,6 +161,3 @@ Pour spécifier des éléments de taille (non pris en compte sur le WSDL) @xsd maxLength=15 - - - diff --git a/docs/VHOST b/docs/VHOST deleted file mode 100644 index f68d1f45..00000000 --- a/docs/VHOST +++ /dev/null @@ -1,117 +0,0 @@ - -PHP Variables -============= - -. mod_php - - Add in - SetEnv APPLICATION_ENV "development" - -. php-fpm - - Add a file in document root path (public/) a file .user.ini - env[APPLICATION_ENV] = "development" - - See the .user.dev.ini file - -Variables ---------- - : production, staging, development - Défini le mode de fonctionnement pour les erreurs, etc - - -Development -=========== - - - ServerName webservice.sd.dev - AddDefaultCharset utf-8 - - - XSendFile On - XSendFilePath /home/vhosts/webservice/shared - - - DocumentRoot /home/vhosts/webservice/public - - EnableSendfile Off - AllowOverride none - Require all granted - - Order allow,deny - Deny from all - - - RewriteEngine On - RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR] - RewriteCond %{REQUEST_FILENAME} -s [OR] - RewriteCond %{REQUEST_FILENAME} -l [OR] - RewriteCond %{REQUEST_FILENAME} -d - RewriteRule ^.*$ - [NC,L] - RewriteRule ^.*$ index.php [NC,L] - - - - - - RewriteEngine Off - - - - # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. - LogLevel error - ErrorLog ${APACHE_LOG_DIR}/webservice-error.log - CustomLog ${APACHE_LOG_DIR}/webservice-access.log combined - - - -Production -========== - - - ServerName webservice.scores-decisions.com - AddDefaultCharset utf-8 - UseCanonicalName On - UseCanonicalPhysicalPort On - ServerSignature Off - - SetEnv APPLICATION_ENV "production" - - - XSendFile On - XSendFilePath /home/vhosts/webservice/shared - - - DirectoryIndex index.php - DocumentRoot /home/vhosts/webservice/current/public - - Options FollowSymLinks Indexes - AllowOverride none - Require all granted - - Order allow,deny - Deny from all - - - RewriteEngine On - RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR] - RewriteCond %{REQUEST_FILENAME} -s [OR] - RewriteCond %{REQUEST_FILENAME} -l [OR] - RewriteCond %{REQUEST_FILENAME} -d - RewriteRule ^.*$ - [NC,L] - RewriteRule ^.*$ index.php [NC,L] - - - - - - RewriteEngine Off - - - - # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. - LogLevel error - ErrorLog ${APACHE_LOG_DIR}/webservice-error.log - CustomLog ${APACHE_LOG_DIR}/webservice-access.log combined - - diff --git a/docs/config/.user.dev.ini b/docs/config/.user.ini similarity index 100% rename from docs/config/.user.dev.ini rename to docs/config/.user.ini diff --git a/docs/config/application.dev.ini b/docs/config/application.ini similarity index 100% rename from docs/config/application.dev.ini rename to docs/config/application.ini