简体   繁体   English

Azure Web App Mcrypt安装

[英]Azure Web App Mcrypt Installation

I'm trying to deploy my Laravel app using git to Azure. 我正在尝试使用git将我的Laravel应用程序部署到Azure。 I already installed the following extensions to my app; 我已经为我的应用安装了以下扩展程序;

Composer 0.3.2 PHP7 x86 (Laravel)0.0.2 Php Manager 1.2.0 phpMyAdmin 4.5.3.1 作曲家0.3.2 PHP7 x86(Laravel)0.0.2 Php管理器1.2.0 phpMyAdmin 4.5.3.1

However when I push my app, I get the following error; 但是,当我推送应用程序时,出现以下错误;

> 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://mburakergenc@larabook.scm.azurewebsites.net:443/larabook.git
 * [new branch]      master -> master

I believe that mcrypt is not installed with the php and that causes the error. 我相信mcrypt未随php一起安装,这会导致错误。 However I couldn't figure out how to install mcrypt on a windows server on Azure. 但是我不知道如何在Azure的Windows服务器上安装mcrypt。

Finally I removed scripts part from my composer.json file and the deployment was successful. 最后,我从composer.json文件中删除了脚本部分,并且部署成功。 However I don't know how sufficient is this solution. 但是我不知道这种解决方案是否足够。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM