title: Setup a PHP/Laravel 5 project with Bootstrap SB Admin 2 in Microsoft Azure
body: <p>My plan is to make a lavarel project using bootstrap sb admin 2 template. In order to tweak azure, I used this <a href="http://blog.bobbyallen.me/2015/06/26/configuring-and-hosting-laravel-5-x-applications-on-windows-azure/" rel="nofollow noreferrer">tutorial</a>. </p>
  
  <p>Instead of bitbucket I used Github.</p>
  
  <p>In the azure web app, I installed the composer extension. 
  From the Kudu console I installed bower and gulp</p>
  
  <pre><code>D:\home\site&gt;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&gt;npm install gulp
  npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases &gt;= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
  npm WARN deprecated lodash@1.0.2: lodash@&lt;3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
  npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases &gt;= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
  </code></pre>
  
  <p>I prepared the Laravel framework with <a href="http://startlaravel.com/themes/sb-admin-laravel-5/" rel="nofollow noreferrer">SB admin</a> in localhost and then I tried to push everything in github. The result was a failure because azure cannot sychronize with Github. I think that there is a problem with either bower or gulp but I don't know how to fix it. Any help will be appreciated. Thanks in advance.</p>
  
  <p>The result:
  <a href="https://i.stack.imgur.com/Bj5bV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bj5bV.png" alt="enter image description here"></a></p>
  
  <pre><code>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
  
  &gt; php artisan clear-compiled
  
  &gt; 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] [--] [&lt;packages&gt;]...
  
  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&gt; php artisan clear-compiled\r\n&gt; 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] [--] [&lt;packages&gt;]...\r\nC:\Program Files (x86)\SiteExtensions\Kudu\55.50526.2249\bin\Scripts\starter.cmd D:\home\SiteExtensions\ComposerExtension\Hooks\deploy.cmd
  </code></pre>