Erro ao fazer o Deploy no Heroku
Boa tarde,logo após realizar o comando git push heroku master aparece o seguinte erro:
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> PHP app detected
-----> Installing platform packages...
NOTICE: No runtime required in composer.json; requirements
from dependencies in composer.lock will be used for selection
- php (7.4.19)
- ext-mbstring (bundled with php)
- apache (2.4.46)
- nginx (1.18.0)
- composer (2.0.13)
-----> Installing dependencies...
Composer version 2.0.13 2021-04-27 13:11:08
! WARNING: Composer vendor dir found in project!
! Your Git repository contains Composer's 'vendor' directory.
! This directory should not be under version control; only your
! 'composer.json' and 'composer.lock' files need to be added, as
! Composer will handle installation of dependencies on deploy.
! To suppress this notice, first remove the folder from the index
! by running 'git rm -r --cached vendor/'.
! Next, edit your project's '.gitignore' file and add the folder
! '/vendor/' to the list, then commit the changes.
! For more info, refer to the Composer FAQ: http://bit.ly/1rlCSZU
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 0 updates, 2 removals
- Removing squizlabs/php_codesniffer (3.6.0)
- Removing fzaninotto/faker (v1.6.0)
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package xtreamwayz/pimple-container-interop is abandoned, you should avoid using it. No replacement was suggested.
Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead.
Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
13 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> vendor/bin/phinx migrate
sh: 1: vendor/bin/phinx: Permission denied
Script vendor/bin/phinx migrate handling the post-install-cmd event returned with error code 126
! WARNING: A post-install-cmd script terminated with an error
! ERROR: Dependency installation failed!
! The 'composer install' process failed with an error. The cause
! may be the download or installation of packages, or a pre- or
! post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
! in your 'composer.json'.
! Typical error cases are out-of-date or missing parts of code,
! timeouts when making external connections, or memory limits.
! Check the above error output closely to determine the cause of
! the problem, ensure the code you're pushing is functioning
! properly, and that all local changes are committed correctly.
! For more information on builds for PHP on Heroku, refer to
! REMINDER: the following warnings were emitted during the build;
! check the details above, as they may be related to this error:
! - Composer vendor dir found in project!
! - A post-install-cmd script terminated with an error
! Push rejected, failed to compile PHP app.
! Push failed
Podem me ajudar?