-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Updated Heroku instructions #6394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,20 +305,20 @@ This is also very useful to build assets on the production system, e.g. with Ass | |
|
||
With the next deploy, Heroku compiles your app using the Node.js buildpack and | ||
your npm packages become installed. On the other hand, your ``composer.json`` is | ||
now ignored. To compile your app with both buildpacks, Node.js *and* PHP, you can | ||
use a special `multiple buildpack`_. To override buildpack auto-detection, you | ||
need to explicitly set the buildpack URL: | ||
now ignored. To compile your app with both buildpacks, Node.js *and* PHP, you need | ||
to use both buildpacks. To override buildpack auto-detection, you | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Effectively, you're saying "To use both builds packs, you need to use both buildpacks." That's kind of strange. What about changing this to "To compile your app with both buildpacks, override the buildpack auto-detection with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would rather use something like "To compile your app with both buildpacks, manually select them with the |
||
need to explicitly set the buildpack: | ||
|
||
.. code-block:: bash | ||
|
||
$ heroku buildpacks:set https://github.com/ddollar/heroku-buildpack-multi.git | ||
|
||
Next, add a ``.buildpacks`` file to your project, listing the buildpacks you need: | ||
|
||
.. code-block:: text | ||
|
||
https://github.com/heroku/heroku-buildpack-nodejs.git | ||
https://github.com/heroku/heroku-buildpack-php.git | ||
$ heroku buildpacks:set heroku/nodejs | ||
Buildpack set. Next release on your-application will use heroku/nodejs. | ||
Run git push heroku master to create a new release using this buildpack. | ||
$ heroku buildpacks:set heroku/php --index 2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you could just use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I considered that, but in the end I thought this was better because this way is idempotent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It sort of is, but the problem is that build pack order matters. In order to be able to use a composer post-install hook for e.g. Gulp, the node build pack needs to come before the PHP build pack. Just using |
||
Buildpack set. Next release on your-application will use: | ||
1. heroku/nodejs | ||
2. heroku/php | ||
Run git push heroku master to create a new release using these buildpacks. | ||
|
||
With the next deploy, you can benefit from both buildpacks. This setup also enables | ||
your Heroku environment to make use of node based automatic build tools like | ||
|
@@ -336,7 +336,6 @@ This is also very useful to build assets on the production system, e.g. with Ass | |
.. _`custom compile steps`: https://devcenter.heroku.com/articles/php-support#custom-compile-step | ||
.. _`custom Composer command`: https://getcomposer.org/doc/articles/scripts.md#writing-custom-commands | ||
.. _`Heroku buildpacks`: https://devcenter.heroku.com/articles/buildpacks | ||
.. _`multiple buildpack`: https://github.com/ddollar/heroku-buildpack-multi | ||
.. _`Grunt`: http://gruntjs.com | ||
.. _`gulp`: http://gulpjs.com | ||
.. _`Heroku documentation`: https://devcenter.heroku.com/articles/custom-php-settings#nginx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
multiple buildpack
link should be removed at the bottom of the page too, as you don't use it anymoreThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.