gpt4 book ai didi

php - Azure Web 应用程序 Mcrypt 安装

转载 作者:行者123 更新时间:2023-12-03 04:32:13 25 4
gpt4 key购买 nike

我正在尝试使用 git 将我的 Laravel 应用程序部署到 Azure。我已经在我的应用程序中安装了以下扩展;

Composer 0.3.2PHP7 x86 (Laravel)0.0.2PHP 管理器 1.2.0phpMyAdmin 4.5.3.1

但是,当我推送我的应用程序时,出现以下错误;

> php artisan clear-compiled
remote: Script php artisan clear-compiled handling the post-install-cmd event returned with an error
remote:
remote:
remote: [RuntimeException]
remote: Error Output:
remote:
remote:
remote: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
remote:
remote: {"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Way\\Generators\\GeneratorsServiceProvider' not found","file":"D:\\home\\repository\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\ProviderRepository.php","line":157}}An error has occurred during web site deployment.
remote:
remote: Error - Changes committed to remote repository but deployment to website failed.
To https://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="abc6c9ded9cac0ced9cccec5c8ebc7cad9cac9c4c4c085d8c8c685cad1ded9cedccec9d8c2dfced885c5cedf" rel="noreferrer noopener nofollow">[email protected]</a>:443/larabook.git
* [new branch] master -> master

我相信 mcrypt 没有与 php 一起安装,这会导致错误。但是我不知道如何在 Azure 上的 Windows 服务器上安装 mcrypt。

最佳答案

最后,我从composer.json 文件中删除了脚本部分,部署成功。但我不知道这个解决方案是否足够。

关于php - Azure Web 应用程序 Mcrypt 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35108543/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com