【发布时间】:2015-12-08 10:37:01
【问题描述】:
我正在尝试从本地 git 存储库将新的 Laravel 应用程序部署到 Azure webapp。在应用程序设置中,我按照在 Azure 上部署 laravel 的建议配置了以下内容:
应用设置 - SCM_REPOSITORY_PATH => D:\home\repository - SCM_TARGET_PATH => D:\home\site
虚拟应用程序和目录 - / => 网站\公共
苦杜 - Composer 作为扩展安装
但是,当我在命令行中运行 git push repo master 时,它运行良好,但最后我看到的是:
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
文件不在 D:\home\site 中,但在存储库中。如果我使用默认设置,则会部署文件,但我仍然会收到错误消息。然而,网站的响应时间有时会非常慢,超过 10 秒。我也想知道这个错误是否应该归咎于这个错误。最近有没有人在 azure 上部署 laravel 并遇到过这个问题?
【问题讨论】: