Hello,I am trying to push a php project using the php-buildpack (https://github.com/cloudfoundry/php-buildpack). I am using composer to install dependencies. when I run composer install on my composer.json locally it creates a vendor folder containing all my dependencies, but when I cf push the project using the buildpack the composer install runs but no vendor folder is created.
So all my dependencies are lost. I have looked through the files after the push and I cannot find the vendor directory anywhere.
this works perfectly locally and the files are identical. has anyone experienced a similar problem?
--Thanks
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/afcff93f-028a-432c-a273-6aaff6567494%40cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
composer.json
composer.lock
htdocs
httpd
logs
mu-plugins
php
wp-config.php
comes from
}there is also a httpdd/extra/httpd-php.conf in there with options.json (not sure if that matters)
I'll try using master for the build pack now and report if anything happens. Again thank you very much for your help! I've been working on this issue for quite a while
ERR bash: composer: command not found (screenshot attached)
this happens after composer installs all dependencies so it is pretty weird that it's saying it doesnt recognize composer. have you seen this issue before? I've tried different buildpack versions, same error. this has been happening all day so I don't think it was cause by changing COMPOSER_VENDOR_DIR in options.json
[WARNING] helpers - Selected version of PHP [PHP_55_LATEST] not available. Defaulting to the latest version [5.4.36]
this doesn't cause any problems for me because 5.4 works fine. just wanted to let you know.
thanks again for all the help!
I haven't been able to replicate the unrecognized composer error I'm guessing it was something on our end, but I'll send you the debug logs if I see it again.
One thing we have noticed though is that we set "PHP_VERSION": "PHP_55_LATEST", and get this error:[WARNING] helpers - Selected version of PHP [PHP_55_LATEST] not available. Defaulting to the latest version [5.4.36]