@@ -305,20 +305,20 @@ This is also very useful to build assets on the production system, e.g. with Ass
305
305
306
306
With the next deploy, Heroku compiles your app using the Node.js buildpack and
307
307
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
310
310
need to explicitly set the buildpack URL:
311
311
312
312
.. code-block :: bash
313
313
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.
322
322
323
323
With the next deploy, you can benefit from both buildpacks. This setup also enables
324
324
your Heroku environment to make use of node based automatic build tools like
0 commit comments