I have a project running on Magento 2.1.4, I have the bare minimum needed stored in a Git Repo, which I can clone and run composer install
& php bin/magento setup:upgrade
and all works fine; it generates all the files needed to run Magento 2. - I know this definitely works, it is how my live site has been deployed, and it is how I have been doing it since Magento 2.1.0.
Now I have gone to upgrade Magento from 2.1.4 to 2.1.7 (Latest version at time of writing). To do this all I am doing is changing my composer.json file from "magento/product-community-edition": “2.1.4”
to "magento/product-community-edition": “2.1.7”
and then running composer update
& php bin/magento setup:upgrade
.
Doing the above on my Magento 2 site that is already up and running works fine. My problem arises when I take a fresh copy from my repo, change the composer.json file and run composer update
& php bin/magento setup:upgrade
.
composer update
works fine, but when I try running php bin/magento setup:upgrade
I get the following error:
PHP Warning: require(/***/***/***/***/***/bin/../app/bootstrap.php): failed to open stream: No such file or directory in /***/***/***/***/***/bin/magento on line 14
I can see that the bootstrap.php file is missing from the app folder, along with many other files and folders.
I have tried upgrading to 2.1.5 & 2.1.6 as well, but the same thing happens. This does not happen when installing 2.1.4, all files and folders are generated correctly.
I have cleared my composer cache incase anything was wrong with it, but this has made no difference. I have also searched Google, Magento Forums and Stack Overflow for answers but cannot seem to find anything.
Any assistance would be greatly appreciated.
Regards,
Chris