8000 feature #5216 [Cookbook] [Deployment] Added note about Nginx (phansys) · symfony/symfony-docs@b329b2c · GitHub
[go: up one dir, main page]

Skip to content

Commit b329b2c

Browse files
committed
feature #5216 [Cookbook] [Deployment] Added note about Nginx (phansys)
This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook] [Deployment] Added note about Nginx | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets | Commits ------- 751d0df [Cookbook] [Deployment] Added note about Nginx setup
2 parents 05ec0f9 + 751d0df commit b329b2c

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

@@ -329,3 +339,4 @@ This is also very useful to build assets on the production system, e.g. with Ass
329339
.. _`multiple buildpack`: https://github.com/ddollar/heroku-buildpack-multi.git
330340
.. _`Grunt`: http://gruntjs.com
331341
.. _`gulp`: http://gulpjs.com
342+
.. _`Heroku documentation`: https://devcenter.heroku.com/articles/custom-php-settings#nginx

0 commit comments

Comments
 (0)
0