symfony2 - assetic dump is not dumping on correct path -
issue : in build.xml want local-deploy specific folder somehow not deploying properly,sometime assetic:dump on right folder , sometime doing on wrong folder.e.g. below
assetic:dump wrong folder
local-deploy:
11:06:17 [mkdir] created dir: /srv/www/vhosts/forecast.autotest 11:06:17 [echo] moving project /srv/www/vhosts/forecast.autotest 11:06:20 [copy] copying 11921 files /srv/www/vhosts/forecast.autotest 11:06:22 [copy] copied 2358 empty directories 105 empty directories under /srv/www/vhosts/forecast.autotest 11:06:22 [echo] installing web assets 11:06:26 [exec] installing assets using hard re-create alternative 11:06:26 [exec] installing assets symfony\bundle\frameworkbundle web/bundles/framework 11:06:26 [exec] installing assets jordillonch\bundle\crudgeneratorbundle web/bundles/jordillonchcrudgenerator 11:06:26 [exec] installing assets niwa\econecombundle web/bundles/niwaeconecom 11:06:26 [exec] installing assets niwa\usermanagementbundle web/bundles/niwausermanagement 11:06:26 [exec] installing assets niwa\userinterfacebundle web/bundles/niwauserinterface 11:06:26 [exec] installing assets niwa\utilitiesbundle web/bundles/niwautilities 11:06:26 [exec] installing assets niwa\forecastrestbundle web/bundles/niwaforecastrest 11:06:26 [exec] installing assets niwa\forecastuibundle web/bundles/niwaforecastui 11:06:26 [exec] installing assets niwa\contentapibundle web/bundles/niwacontentapi 11:06:26 [exec] installing assets sensio\bundle\distributionbundle web/bundles/sensiodistribution 11:06:26 [exec] installing assets niwa\thirdpartybundle web/bundles/niwathirdparty 11:06:27 [exec] dumping test assets. 11:06:27 [exec] debug mode on. 11:06:27 [exec] 11:06:32 [exec] 11:06:32 [exec] 11:06:32 [exec] 11:06:32 [exec] [runtimeexception] 11:06:32 [exec] source file "/repository/jenkins/jobs/forecast/workspace/app/../web/bundles/niwaeconecom/less/main.less" not exist. 11:06:32 [exec] 11:06:32 [exec] 11:06:32 [exec] 11:06:32 [exec] assetic:dump [--watch] [--force] [--period="..."] [write_to] 11:06:32 [exec] 11:06:32 [exec] 11:06:32 [exec] 11:06:31 [file+] /repository/jenkins/jobs/forecast/workspace/app/../web/js/b2dccab.js 11:06:32 [exec] 11:06:31 [file+] /repository/jenkins/jobs/forecast/workspace/app/../web/js/b2dccab_passwordcheck_1.js 11:06:32 [exec] 11:06:31 [file+] /repository/jenkins/jobs/forecast/workspace/app/../web/js/b2dccab_account_2.js 11:06:32 [exec] 11:06:31 [file+] /repository/jenkins/jobs/forecast/workspace/app/../web/js/3734ff1.js 11:06:32 [exec] 11:06:31 [file+] /repository/jenkins/jobs/forecast/workspace/app/../web/js/3734ff1_common_1.js
it suppose go folder :
[mkdir] created dir: /srv/www/vhosts/forecast.autotest 15:31:40 [echo] moving project /srv/www/vhosts/forecast.autotest 15:31:42 [copy] copying 10719 files /srv/www/vhosts/forecast.autotest 15:31:45 [copy] copied 2089 empty directories 112 empty directories under /srv/www/vhosts/forecast.autotest 15:31:45 [echo] installing web assets 15:31:49 [exec] installing assets using hard re-create alternative 15:31:49 [exec] installing assets symfony\bundle\frameworkbundle web/bundles/framework 15:31:49 [exec] installing assets jordillonch\bundle\crudgeneratorbundle web/bundles/jordillonchcrudgenerator 15:31:49 [exec] installing assets niwa\econecombundle web/bundles/niwaeconecom 15:31:49 [exec] installing assets niwa\usermanagementbundle web/bundles/niwausermanagement 15:31:49 [exec] installing assets niwa\userinterfacebundle web/bundles/niwauserinterface 15:31:50 [exec] installing assets niwa\utilitiesbundle web/bundles/niwautilities 15:31:50 [exec] installing assets niwa\forecastrestbundle web/bundles/niwaforecastrest 15:31:50 [exec] installing assets niwa\forecastuibundle web/bundles/niwaforecastui 15:31:50 [exec] installing assets niwa\contentapibundle web/bundles/niwacontentapi 15:31:50 [exec] installing assets sensio\bundle\distributionbundle web/bundles/sensiodistribution 15:31:50 [exec] installing assets niwa\thirdpartybundle web/bundles/niwathirdparty 15:31:53 [exec] dumping test assets. 15:31:53 [exec] debug mode on. 15:31:53 [exec] 15:31:57 [exec] 15:31:57 [dir+] /srv/www/vhosts/forecast.autotest/app/../web/js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/83950ce.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/83950ce_login_1.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/css/8892858.css 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/css/8892858_bootstrap_1.css 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/css/8892858_bootstrap-theme_2.css 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/b2dccab.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/b2dccab_passwordcheck_1.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/b2dccab_account_2.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/f9999e4.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/f9999e4_review_1.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/6917cbd.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/6917cbd_configure_1.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/f3d4596.js 15:31:57 [exec] 15:31:57 [file+] /srv/www/vhosts/forecast.autotest/app/../web/js/f3d4596_complete_1.js
so suppose go /srv/www/vhosts/... sometime goes /repository/jenkins/jobs/...
my config.yml file below:
# assetic configuration assetic: debug: "%kernel.debug%" use_controller: false #bundles: [ ] #java: /usr/bin/java filters: less: node: %node% node_paths: %node_paths% apply_to: "\.less$" cssrewrite: ~ uglifyjs2: bin: %uglify_path%
the command utilize dump :
<echo message="installing web assets" /> <exec dir="srv/www/vhosts/forecast.${build_environment}" executable="php" failonerror="false"> <arg line="app/console assets:install web" /> </exec>
symfony2 deployment build assetic
No comments:
Post a Comment