i using continuous deployment jenkins on aws. ok, when on page, there error:
warning: require_once(/var/app/web/../app/bootstrap.php.cache): failed open stream: no such file or directory in /var/app/web/app.php on line 6 fatal error: require_once(): failed opening required '/var/app/web/../app/bootstrap.php.cache' (include_path='.:/usr/local/lib/php') in /var/app/web/app.php on line 6
i know, it's because miss bootstrap.php.cache should generated composer, there nothing.
in dockerfile use run composer install --no-scripts --optimize-autoloader
and in entrypoint have composer run-script post-install-cmd --no-interaction
execute following command:
sudo php vendor/sensio/distribution-bundle/sensio/bundle/distributionbundle/resources/bin/build_bootstrap.php
Comments
Post a Comment