2016-05-28 6 views
0

私の計画は、ブートストラップsb admin 2テンプレートを使用してlavarelプロジェクトを作成することです。紺碧を微調整するために、私はこれをtutorialと使いました。Microsoft AzureでBootstrap SB Admin 2を使用してPHP/Laravel 5プロジェクトをセットアップする

bitbucketの代わりに私はGithubを使用しました。

azureウェブアプリでは、コンポーザーエクステンションをインストールしました。クーズーコンソールから は私がローカルホストでSB adminでLaravelフレームワークを用意し、その後、私はgithubの中ですべてのものをプッシュしようとしたバウアーと一息

D:\home\site>npm install bower 
npm WARN enoent ENOENT: no such file or directory, open 'D:\home\site\package.json' 
npm WARN site No description 
npm WARN site No repository field. 
npm WARN site No README data npm WARN site No license field. 


D:\home\site>npm install gulp 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. 
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0. 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. 

をインストールしました。紺碧はGithubとsychronizeすることができないため、結果は失敗でした。私は、バウアーやガルプのいずれかに問題があると思いますが、それを修正する方法はわかりません。どんな助けもありがとう。前もって感謝します。

結果: enter image description here

Command: D:\home\SiteExtensions\ComposerExtension\Hooks\deploy.cmd 

Install Dependencies with Composer 

Loading composer repositories with package information 

Installing dependencies from lock file 

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them. 

Nothing to install or update 

Generating optimized autoload files 

> php artisan clear-compiled 

> php artisan optimize 

Generating optimized class loader 



    [Symfony\Component\Process\Exception\ProcessTimedOutException]   

    The process "php artisan optimize" exceeded the timeout of 300 seconds. 



An error has occurred during web site deployment. 

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]... 

Loading composer repositories with package information\r\nInstalling dependencies from lock file\r\nWarning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.\r\nNothing to install or update\r\nGenerating optimized autoload files\r\n> php artisan clear-compiled\r\n> php artisan optimize\r\n\r\n                   \r\n [Symfony\Component\Process\Exception\ProcessTimedOutException]   \r\n The process "php artisan optimize" exceeded the timeout of 300 seconds. \r\n                   \r\n\r\ninstall [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...\r\nC:\Program Files (x86)\SiteExtensions\Kudu\55.50526.2249\bin\Scripts\starter.cmd D:\home\SiteExtensions\ComposerExtension\Hooks\deploy.cmd 

答えて

0

あなたはコマンドを削除することができます

"php artisan clear-compiled", 
"php artisan optimize" 

composer.jsonでスクリプト閉鎖"post-install-cmd"下のファイル。次に、展開後にVSOまたはKUDUコンソールサイト経由でこれらのコマンドを実行します。

SOと同じ問題は、Deploying a Laravel App on Azureです。そして、この答えをあなたの問題を解決するための回避策と呼ぶことができます。

関連する問題