Skip to content

Commit 815bb81

Browse files
Updated the Heroku deployment article
1 parent 50f5ea4 commit 815bb81

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

deployment/heroku.rst

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,16 @@ below:
8585
~~~~~~~~~~~~~~~~~~~~
8686

8787
By default, Heroku will launch an Apache web server together with PHP to serve
88-
applications. However, two special circumstances apply to Symfony applications:
89-
90-
#. The document root is in the ``web/`` directory and not in the root directory
91-
of the application;
92-
#. The Composer ``bin-dir``, where vendor binaries (and thus Heroku's own boot
93-
scripts) are placed, is ``bin/`` , and not the default ``vendor/bin``.
94-
95-
.. note::
96-
97-
Vendor binaries are usually installed to ``vendor/bin`` by Composer, but
98-
sometimes (e.g. when running a Symfony Standard Edition project!), the
99-
location will be different. If in doubt, you can always run
100-
``composer config bin-dir`` to figure out the right location.
88+
applications. However, a special circumstance apply to Symfony applications:
89+
the document root is in the ``web/`` directory and not in the root directory
90+
of the application.
10191

10292
Create a new file called ``Procfile`` (without any extension) at the root
10393
directory of the application and add just the following content:
10494

10595
.. code-block:: text
10696
107-
web: bin/heroku-php-apache2 web/
97+
web: vendor/bin/heroku-php-apache2 web/
10898
10999
.. note::
110100

@@ -114,14 +104,14 @@ directory of the application and add just the following content:
114104

115105
.. code-block:: text
116106
117-
web: bin/heroku-php-nginx -C nginx_app.conf web/
107+
web: vendor/bin/heroku-php-nginx -C nginx_app.conf web/
118108
119109
If you prefer working on the command console, execute the following commands to
120110
create the ``Procfile`` file and to add it to the repository:
121111

122112
.. code-block:: terminal
123113
124-
$ echo "web: bin/heroku-php-apache2 web/" > Procfile
114+
$ echo "web: vendor/bin/heroku-php-apache2 web/" > Procfile
125115
$ git add .
126116
$ git commit -m "Procfile for Apache and PHP"
127117
[master 35075db] Procfile for Apache and PHP

0 commit comments

Comments
 (0)