From bb3083ec64eb262418479fe3005fd679318e9ca4 Mon Sep 17 00:00:00 2001
From: jvoisin
Date: Mon, 6 Jul 2020 20:00:07 +0200
Subject: Improve a bit the previous commit
---
doc/source/installation.rst | 30 +++++++++++++++++++-----------
1 file changed, 19 insertions(+), 11 deletions(-)
(limited to 'doc')
diff --git a/doc/source/installation.rst b/doc/source/installation.rst
index fe6a7e3..c4cc355 100644
--- a/doc/source/installation.rst
+++ b/doc/source/installation.rst
@@ -76,12 +76,14 @@ solvable via:
Heroku installation
-------------------
-Heroku official `buildpack `_ uses ``Composer`` to install all dependencies required by your PHP application.
-If you're using `manual installation `__ and `default rules `__, you might crash the deployment and encounter the following error:
+Heroku's official `buildpack `_
+uses ``Composer`` to install all dependencies required by your PHP application.
+Careful with the `default set of rules
+`__,
+since it might block the composer deployment, leading to the following errors:
::
- app[api]: Release v666 created by user kulisu@github.com
heroku[web.1]: Starting process with command `vendor/bin/heroku-php-apache2 -F fpm_custom.conf public/`
heroku[web.1]: Stopping all processes with SIGTERM
app[web.1]: Stopping httpd...
@@ -97,11 +99,11 @@ If you're using `manual installation `__
Requirements
^^^^^^^^^^^^
-According to the `document `_ you can install custom PHP extensions during compilation.
-All you need to do is updaing ``composer.json`` to install Snuffleupagus, and updating ``Procfile`` to load additional PHP-FPM configuration.
+To install snuffleupagus on heroku, simply follow the `documentation `_,
+and edit the ``composer.json`` file, as well as the ``Procfile`` to load the additional PHP-FPM configuration.
-Composer
-^^^^^^^^^^
+composer.json
+"""""""""""""
::
@@ -123,10 +125,12 @@ Composer
}
}
-This step will compile Snuffleupagus to shared library, install it to proper path and specify an empty configuration in ``sp.configuration_file`` to ensure all Heroku console scripts against restrictions.
+This configuration will compile Snuffleupagus to shared library, install it to the proper
+location and specify an empty configuration in ``sp.configuration_file`` to ensure
+that the ``composer`` deployment phase won't get killed by some rules.
PHP-FPM
-^^^^^^^^^^
+"""""""
::
@@ -134,7 +138,11 @@ PHP-FPM
php_admin_flag[sp.allow_broken_configuration] = off
php_admin_value[sp.configuration_file] = /app/default.rules
-The final step is setting ``sp.configuration_file`` in an additional `PHP-FPM configuration `_, and specifying it to load with Apache or Nginx. That's it. Now your PHP application is hardening by Snuffleupagus.
+The final step is to point ``sp.configuration_file`` to a rule set by setting
+the preference in an additional `PHP-FPM
+configuration `_.
+
+You should now be running Snuffleupagus in PHP on heroku:
::
@@ -146,4 +154,4 @@ The final step is setting ``sp.configuration_file`` in an additional `PHP-FPM co
Upgrading
---------
-Upgrading the Snuffleupagus is as simple as recompiling it (or using a binary), replacing the file and restarting your webserver.
+Upgrading Snuffleupagus is as simple as recompiling it (or using a binary), replacing the file and restarting your webserver.
--
cgit v1.3