From 751d0dfca017ff44693962901cff7dcbefb24495 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Tue, 5 May 2015 15:00:23 -0300 Subject: [PATCH] [Cookbook] [Deployment] Added note about Nginx setup | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets | --- cookbook/deployment/heroku.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cookbook/deployment/heroku.rst b/cookbook/deployment/heroku.rst index 83f71d8949b..7bd8373d381 100644 --- a/cookbook/deployment/heroku.rst +++ b/cookbook/deployment/heroku.rst @@ -106,6 +106,16 @@ directory of the application and add just the following content: web: bin/heroku-php-apache2 web/ +.. note:: + + If you prefer to use Nginx, which is also available on Heroku, you can create + a configuration file for it and point to it from your Procfile as described + in the `Heroku documentation`_: + + .. code-block:: text + + web: bin/heroku-php-nginx -C nginx_app.conf web/ + If you prefer working on the command console, execute the following commands to create the ``Procfile`` file and to add it to the repository: @@ -329,3 +339,4 @@ This is also very useful to build assets on the production system, e.g. with Ass .. _`multiple buildpack`: https://github.com/ddollar/heroku-buildpack-multi.git .. _`Grunt`: http://gruntjs.com .. _`gulp`: http://gulpjs.com +.. _`Heroku documentation`: https://devcenter.heroku.com/articles/custom-php-settings#nginx