Setup a PHP/Laravel 5 project with Bootstrap SB Admin 2 in Microsoft Azure -


my plan make lavarel project using bootstrap sb admin 2 template. in order tweak azure, used tutorial.

instead of bitbucket used github.

in azure web app, installed composer extension. kudu console installed bower , gulp

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 graceful-fs@3.0.8: graceful-fs v3.0.0 , before fail on node releases >= v7.0. please update graceful-fs@^4.0.0 possible. use 'npm ls graceful-fs' find in tree. npm warn deprecated lodash@1.0.2: lodash@<3.0.0 no longer maintained. upgrade lodash@^4.0.0. npm warn deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 , before fail on node releases >= v7.0. please update graceful-fs@^4.0.0 possible. use 'npm ls graceful-fs' find in tree. 

i prepared laravel framework sb admin in localhost , tried push in github. result failure because azure cannot sychronize github. think there problem either bower or gulp don't know how fix it. appreciated. in advance.

the result: enter image description here

command: d:\home\siteextensions\composerextension\hooks\deploy.cmd  install dependencies composer  loading composer repositories package information  installing dependencies lock file  warning: lock file not date latest changes in composer.json. may getting outdated dependencies. run update update them.  nothing install or update  generating optimized autoload files  > php artisan clear-compiled  > php artisan optimize  generating optimized class loader      [symfony\component\process\exception\processtimedoutexception]               process "php artisan optimize" exceeded timeout of 300 seconds.      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 package information\r\ninstalling dependencies lock file\r\nwarning: lock file not date latest changes in composer.json. may getting outdated dependencies. run update update them.\r\nnothing 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  process "php artisan optimize" exceeded 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 

you can remove commands:

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

under "post-install-cmd" scripts closure in composer.json file. run these commands via vso or kudu console site after deployment.

here same issue on so, deploying laravel app on azure. , can refer answer workaround solve issue.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -