I am currently trying to set up a Laravel 5.6 project on Swisscom Application Cloud using the php-buildpack.
Unfortunately, my public/vendor folder does not get uploaded or gets deleted once uploaded after cf push. If I connect using cf ssh and navigate to the public folder, there is no vendor folder inside. I tried everything including removing everything from .cfignore.
options.json
{
"LIBDIR": "vendor",
"WEBDIR": "public",
"PHP_VERSION": "{PHP_70_LATEST}",
"COMPOSER_VENDOR_DIR": "vendor",
"PHP_EXTENSIONS": [ "bz2", "zlib", "openssl", "tokenizer", "curl",
"mcrypt", "mbstring", "pdo", "pdo_mysql", "fileinfo", "gd",
"pdo_sqlite"],
"PHP_MODULES": ["fpm", "cli"],
"ADDITIONAL_PREPROCESS_CMDS": [
"php artisan migrate --force",
"php artisan config:cache"
]
}
If I copy my public/vendor folder to public/vendor2, the folder is available on the server after cf push.
Edit: I need to mention that the public/vendor folder is not the folder created by executing composer install but includes all css/html/js files which need to be publicly available. They need to be added locally as some of them need to be built with npm or modified.