I am trying to deploy a new Laravel application to an Azure webapp from a local git repository. In the app settings I configured the following as is suggested for deploying laravel on Azure:
App Settings - SCM_REPOSITORY_PATH => D:\homeepository - SCM_TARGET_PATH => D:\home\site
Virtual Applications and Directories - / => site\public
Kudu - Composer installed as extension
However when I run git push repo master in the command line it runs fine but at the end this is what I see:
remote: > php artisan clear-compiled
remote: .............................................................................
.....................................................................................
...............................
remote:
remote:
remote:
remote: [Symfony\Component\Process\Exception\RuntimeException]
remote:
remote: Unable to kill the process
remote: Fatal error: Uncaught exception 'Symfony\Component\Process\Exception\RuntimeE
xception' with message 'Unable to kill the process' in phar://D:/home/SiteExtensions/
ComposerExtension/Commands/composer.phar/vendor/symfony/process/Process.php:779
remote:
remote: Stack trace:
remote: #0 phar://D:/home/SiteExtensions/ComposerExtension/Commands/composer.phar/ven
dor/symfony/process/Process.php(173): Symfony\Component\Process\Process->stop()
remote:
remote: #1 [internal function]: Symfony\Component\Process\Process->__destruct()
remote:
remote: #2 {main}
remote: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--n
o-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress]
[-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ign
ore-platform-reqs] [--] [<packages>]...
remote: thrown in phar://D:/home/SiteExtensions/ComposerExtension/Commands/composer
.phar/vendor/symfony/process/Process.php on line 779
remote:
remote: An error has occurred during web site deployment.
remote:
remote:
remote: Error - Changes committed to remote repository but deployment to website fail
ed.
To <url>
* [new branch] master -> master
The files are not in D:\home\site but are in the repository. If I use the default settings the files are deployed but I still get the error. However the response time of the site can be extremely slow over 10s sometimes. I am also wondering if this error is to blame. Has anyone deployed laravel on azure recently and had this problem?