Skip to content

Commit c39f20e

Browse files
committed
[Cookbook] [Deployment] Added note about Nginx setup
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets |
1 parent 387ebc0 commit c39f20e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cookbook/deployment/heroku.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ directory of the application and add just the following content:
106106
107107
web: bin/heroku-php-apache2 web/
108108
109+
.. note::
110+
111+
If you prefer to use Nginx, which is also available on Heroku, you can create
112+
a configuration file for it and point to it from your Procfile as described
113+
in the `Heroku documentation`_:
114+
115+
.. code-block:: text
116+
117+
web: bin/heroku-php-nginx -C nginx_app.conf web/
118+
109119
If you prefer working on the command console, execute the following commands to
110120
create the ``Procfile`` file and to add it to the repository:
111121

@@ -244,3 +254,4 @@ You should be seeing your Symfony application in your browser.
244254
.. _`verified that the RSA key fingerprint is correct`: https://devcenter.heroku.com/articles/git-repository-ssh-fingerprints
245255
.. _`post-install-commands`: https://getcomposer.org/doc/articles/scripts.md
246256
.. _`config vars`: https://devcenter.heroku.com/articles/config-vars
257+
.. _`Heroku documentation`: https://devcenter.heroku.com/articles/custom-php-settings#nginx

0 commit comments

Comments
 (0)