Hi @Mike Atkinson ,
There are issues with the current tutorial as it hasn't been updated in 4 years. I would try running php composer.phar install
from D:\home\site\wwwroot>
on Kudu console and check for errors.
I received Try to access array offset on value of type null error exception at which case I ran
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
to update composer.phar; see https://github.com/composer/composer/issues/8324 and ran php composer.phar install
again.
This is partially due to Composer not readily available on Windows hosted app as opposed to Linux hosted app. Therefore, you may have better luck with a Linux deployment. If do go that route, remove .deployment
file from the repo as that's for getting Composer setup on the Windows host machine.
The doc author is aware of this issue and will update the doc.
Regards,
Ryan