2016-01-30 219 views
1

我正在嘗試將使用git的Laravel應用程序部署到Azure。我已經爲我的應用程序安裝了以下擴展程序;Azure Web應用程序Mcrypt安裝

作曲家0.3.2 PHP7 86(Laravel)0.0.2 PHP管理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://[email protected]:443/larabook.git 
* [new branch]  master -> master 

我相信mcrypt沒有與php安裝,並導致錯誤。但是我無法弄清楚如何在Azure上的Windows服務器上安裝mcrypt。

回答

0

最後,我從我的composer.json文件中刪除腳本部分,並且部署成功。但是我不知道這個解決方案有多足夠。

相關問題