Symbol white

← Back to other Deploy suggestions

Composer.json deployed first

C19c4845260ce1c09d0df5abd65b0fe3?rating=pg&size=52&default=mm
suggested by Richard S
4

Ability to have deployment send composer.json before the rest of the deployment files. This will allow us to execute "before deployment" commands before the rest of the files are loaded.

Reason being - frameworks like laravel, etc would fail with composer update as they will not be able to find providers from the vendor folder if a composer update is not run before the rest of the deployment files are uploaded. But of course to do this means composer.json needs to be deployed seperately. If you manage alot of deployments it is double the work to deploy the composer.json first then immediately redeploy with the new app files that load the providers

Collecting We're collecting votes & feedback about this suggestion!

Comments (1)

  • Why do you use composer "before deployment"?
    Simply use it afterwards (so all files are there) and do "composer install". I'm deploying many Symfony-Instances and have no problems that way...

    7f6648ff142bddef8aaf0c042d984415?rating=pg&size=52&default=mm
    posted by Christoph K

Login to comment on this suggestion