Skip to content

Commit 56ed8ab

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cookbook/deployment/heroku.rst

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

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

0 commit comments

Comments
 (0)