Hello! I am trying to deploy Grav as a Heroku app but I get this error:
sh: 1: bin/grav: Permission denied
Script bin/grav install handling the compile event returned with error code 126
! Push rejected, failed to compile PHP app.
! Push failed
The full build log is:
`-----> PHP app detected
-----> Bootstrapping…
-----> Installing platform packages…
NOTICE: No runtime required in composer.json; requirements
from dependencies in composer.lock will be used for selection
- php (7.1.8)
- ext-mbstring (bundled with php)
- apache (2.4.20)
- nginx (1.8.1)
! WARNING: Your ‘composer.lock’ is not up to date with the latest
changes in 'composer.json'. To ensure you are not getting stale
dependencies, run 'composer update' on your machine and commit
any changes to Git before pushing again.
-----> Installing dependencies…
Composer version 1.4.2 2017-05-17 08:17:52
Loading composer repositories with package information
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Package operations: 12 installs, 0 updates, 0 removals
- Installing psr/log (1.0.2): Loading from cache
- Installing monolog/monolog (1.22.1): Loading from cache
- Installing symfony/routing (v3.2.7): Loading from cache
- Installing symfony/polyfill-mbstring (v1.3.0): Loading from cache
- Installing symfony/http-foundation (v3.2.7): Loading from cache
- Installing symfony/event-dispatcher (v3.2.7): Loading from cache
- Installing symfony/debug (v3.2.7): Loading from cache
- Installing symfony/http-kernel (v3.2.7): Loading from cache
- Installing pimple/pimple (v3.0.2): Loading from cache
- Installing silex/silex (v2.0.4): Loading from cache
- Installing twig/twig (v2.3.0): Loading from cache
- Installing symfony/twig-bridge (v3.2.7): Loading from cache
Generating optimized autoload files
-----> Running ‘composer compile’…
> bin/grav install
sh: 1: bin/grav: Permission denied
Script bin/grav install handling the compile event returned with error code 126
! Push rejected, failed to compile PHP app.
! Push failed`
Any help!
Thanks