Skip to content

Commit 05a0afd

Browse files
Updated Heroku instructions
With the newer versions of the Heroku toolbelt, multiple buildpacks is supported by default.
1 parent fdfc2cb commit 05a0afd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cookbook/deployment/heroku.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -305,20 +305,20 @@ This is also very useful to build assets on the production system, e.g. with Ass
305305
306306
With the next deploy, Heroku compiles your app using the Node.js buildpack and
307307
your npm packages become installed. On the other hand, your ``composer.json`` is
308-
now ignored. To compile your app with both buildpacks, Node.js *and* PHP, you can
309-
use a special `multiple buildpack`_. To override buildpack auto-detection, you
308+
now ignored. To compile your app with both buildpacks, Node.js *and* PHP, you need
309+
use both buildpacks. To override buildpack auto-detection, you
310310
need to explicitly set the buildpack URL:
311311

312312
.. code-block:: bash
313313
314-
$ heroku buildpacks:set https://github.com/ddollar/heroku-buildpack-multi.git
315-
316-
Next, add a ``.buildpacks`` file to your project, listing the buildpacks you need:
317-
318-
.. code-block:: text
319-
320-
https://github.com/heroku/heroku-buildpack-nodejs.git
321-
https://github.com/heroku/heroku-buildpack-php.git
314+
$ heroku buildpacks:set heroku/nodejs
315+
Buildpack set. Next release on your-application will use heroku/nodejs.
316+
Run git push heroku master to create a new release using this buildpack.
317+
$ heroku buildpacks:set heroku/php --index 2
318+
Buildpack set. Next release on your-application will use:
319+
1. heroku/nodejs
320+
2. heroku/php
321+
Run git push heroku master to create a new release using these buildpacks.
322322
323323
With the next deploy, you can benefit from both buildpacks. This setup also enables
324324
your Heroku environment to make use of node based automatic build tools like

0 commit comments

Comments
 (0)