Skip to content

Commit 3320b46

Browse files
committed
[Cookbook] Add warning about Composer dev deps on Heroku
1 parent d43b845 commit 3320b46

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbook/deployment/heroku.rst

+7
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ variables, you can issue a single command to prepare your app for a deployment:
141141
142142
$ heroku config:set SYMFONY_ENV=prod
143143
144+
.. caution::
145+
146+
Be aware that dependencies from ``composer.json`` listed in the ``require-dev``
147+
section are never installed during a deploy on Heroku. This may cause problems
148+
if your Symfony environment relies on such packages. The solution is to move these
149+
packages from ``require-dev`` to the ``require`` section.
150+
144151
.. _heroku-push-code:
145152
.. _pushing-to-heroku:
146153

0 commit comments

Comments
 (0)