@@ -85,26 +85,16 @@ below:
85
85
~~~~~~~~~~~~~~~~~~~~
86
86
87
87
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.
101
91
102
92
Create a new file called ``Procfile `` (without any extension) at the root
103
93
directory of the application and add just the following content:
104
94
105
95
.. code-block :: text
106
96
107
- web: bin/heroku-php-apache2 web/
97
+ web: vendor/ bin/heroku-php-apache2 web/
108
98
109
99
.. note ::
110
100
@@ -114,14 +104,14 @@ directory of the application and add just the following content:
114
104
115
105
.. code-block :: text
116
106
117
- web: bin/heroku-php-nginx -C nginx_app.conf web/
107
+ web: vendor/ bin/heroku-php-nginx -C nginx_app.conf web/
118
108
119
109
If you prefer working on the command console, execute the following commands to
120
110
create the ``Procfile `` file and to add it to the repository:
121
111
122
112
.. code-block :: terminal
123
113
124
- $ echo "web: bin/heroku-php-apache2 web/" > Procfile
114
+ $ echo "web: vendor/ bin/heroku-php-apache2 web/" > Procfile
125
115
$ git add .
126
116
$ git commit -m "Procfile for Apache and PHP"
127
117
[master 35075db] Procfile for Apache and PHP
0 commit comments