Azure Web App Mcrypt安装

时间:2016-01-30 23:36:03

标签: php laravel azure deployment mcrypt

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

作曲家0.3.2 PHP7 x86(Laravel)0.0.2 Php Manager 1.2.0 phpMyAdmin 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://mburakergenc@larabook.scm.azurewebsites.net:443/larabook.git
 * [new branch]      master -> master

我相信mcrypt没有安装php,导致错误。但是我无法弄清楚如何在Azure上的Windows服务器上安装mcrypt。

1 个答案:

答案 0 :(得分:0)

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