Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ➜ deploy git:(master) ✗ cap staging deploy --trace
- ** Invoke staging (first_time)
- ** Execute staging
- ** Invoke load:defaults (first_time)
- ** Execute load:defaults
- ** Invoke deploy:set_symfony_env (first_time)
- ** Execute deploy:set_symfony_env
- ** Invoke deploy (first_time)
- ** Execute deploy
- ** Invoke deploy:starting (first_time)
- ** Execute deploy:starting
- ** Invoke deploy:check (first_time)
- ** Invoke git:check (first_time)
- ** Invoke git:wrapper (first_time)
- ** Execute git:wrapper
- 00:00 git:wrapper
- 01 mkdir -p /tmp
- ✔ 01 ec2-user@54.68.137.36 0.592s
- Uploading /tmp/git-ssh-etepia.com-staging-wizardz.sh 100.0%
- 02 chmod 700 /tmp/git-ssh-etepia.com-staging-wizardz.sh
- ✔ 02 ec2-user@54.68.137.36 0.155s
- ** Execute git:check
- 00:01 git:check
- 01 git ls-remote git@bitbucket.org:wizardz/etepia.git HEAD
- 01 e357bd3136590857e232b381491b65f977a561e5 HEAD
- ✔ 01 ec2-user@54.68.137.36 1.481s
- ** Execute deploy:check
- ** Invoke deploy:check:directories (first_time)
- ** Execute deploy:check:directories
- 00:02 deploy:check:directories
- 01 mkdir -p /mnt/www/etepia/shared /mnt/www/etepia/releases
- ✔ 01 ec2-user@54.68.137.36 0.166s
- ** Invoke deploy:check:linked_dirs (first_time)
- ** Execute deploy:check:linked_dirs
- 00:02 deploy:check:linked_dirs
- 01 mkdir -p /mnt/www/etepia/shared/var/logs
- ✔ 01 ec2-user@54.68.137.36 0.161s
- ** Invoke deploy:check:make_linked_dirs (first_time)
- ** Execute deploy:check:make_linked_dirs
- ** Invoke deploy:check:linked_files (first_time)
- ** Execute deploy:check:linked_files
- ** Invoke deploy:set_previous_revision (first_time)
- ** Execute deploy:set_previous_revision
- ** Invoke deploy:started (first_time)
- ** Execute deploy:started
- ** Invoke deploy:updating (first_time)
- ** Invoke deploy:new_release_path (first_time)
- ** Execute deploy:new_release_path
- ** Invoke git:create_release (first_time)
- ** Invoke git:update (first_time)
- ** Invoke git:clone (first_time)
- ** Invoke git:wrapper
- ** Execute git:clone
- 00:03 git:clone
- The repository mirror is at /mnt/www/etepia/repo
- ** Execute git:update
- 00:03 git:update
- 01 git remote set-url origin git@bitbucket.org:wizardz/etepia.git
- ✔ 01 ec2-user@54.68.137.36 0.160s
- 02 git remote update --prune
- 02 Fetching origin
- ✔ 02 ec2-user@54.68.137.36 1.512s
- ** Execute git:create_release
- 00:05 git:create_release
- 01 mkdir -p /mnt/www/etepia/releases/20180624145630
- ✔ 01 ec2-user@54.68.137.36 0.155s
- 02 git archive master | /usr/bin/env tar -x -f - -C /mnt/www/etepia/releases/20180624145630
- ✔ 02 ec2-user@54.68.137.36 0.213s
- ** Execute deploy:updating
- ** Invoke deploy:set_current_revision (first_time)
- ** Invoke git:set_current_revision (first_time)
- ** Execute git:set_current_revision
- ** Execute deploy:set_current_revision
- 00:06 deploy:set_current_revision
- 01 echo "e357bd3136590857e232b381491b65f977a561e5" >> REVISION
- ✔ 01 ec2-user@54.68.137.36 0.157s
- ** Invoke etepia:assets:version (first_time)
- ** Execute etepia:assets:version
- 00:06 etepia:assets:version
- 01 rm app/config/version.yml
- ✔ 01 ec2-user@54.68.137.36 0.156s
- 02 echo "parameters:
- assets_version: e357bd
- " >> app/config/version.yml
- ✔ 02 ec2-user@54.68.137.36 0.157s
- ** Invoke deploy:symlink:shared (first_time)
- ** Execute deploy:symlink:shared
- ** Invoke deploy:symlink:linked_files (first_time)
- ** Execute deploy:symlink:linked_files
- ** Invoke deploy:symlink:linked_dirs (first_time)
- ** Execute deploy:symlink:linked_dirs
- 00:06 deploy:symlink:linked_dirs
- 01 mkdir -p /mnt/www/etepia/releases/20180624145630/var
- ✔ 01 ec2-user@54.68.137.36 0.159s
- 02 rm -rf /mnt/www/etepia/releases/20180624145630/var/logs
- ✔ 02 ec2-user@54.68.137.36 0.156s
- 03 ln -s /mnt/www/etepia/shared/var/logs /mnt/www/etepia/releases/20180624145630/var/logs
- ✔ 03 ec2-user@54.68.137.36 0.155s
- ** Invoke symfony:create_cache_dir (first_time)
- ** Execute symfony:create_cache_dir
- 00:07 symfony:create_cache_dir
- 01 rm -rf /mnt/www/etepia/releases/20180624145630/var/cache
- ✔ 01 ec2-user@54.68.137.36 0.153s
- 02 mkdir -pv var/cache
- 02 mkdir: created directory ‘var/cache’
- ✔ 02 ec2-user@54.68.137.36 0.162s
- ** Invoke symfony:set_permissions (first_time)
- ** Execute symfony:set_permissions
- ** Invoke deploy:set_permissions:acl (first_time)
- ** Invoke deploy:set_permissions:check (first_time)
- ** Execute deploy:set_permissions:check
- ** Execute deploy:set_permissions:acl
- 00:08 deploy:set_permissions:acl
- 01 setfacl -Rn -m u:apache:rwX -m u:ec2-user:rwX /mnt/www/etepia/releases/20180624145630/var /mnt/www/etepia/releases/20180624145630/var/cache /mnt/www/etepia/shared/var/logs
- ✔ 01 ec2-user@54.68.137.36 0.157s
- 02 setfacl -dRn -m u:apache:rwX -m u:ec2-user:rwX /mnt/www/etepia/releases/20180624145630/var /mnt/www/etepia/releases/20180624145630/var/cache /mnt/www/etepia/shared/var/logs
- ✔ 02 ec2-user@54.68.137.36 0.157s
- ** Invoke deploy:updated (first_time)
- ** Invoke composer:install (first_time)
- ** Execute composer:install
- ** Invoke composer:run (first_time)
- ** Execute composer:run
- 00:09 composer:run
- 01 php composer.phar install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader
- ✔ 01 ec2-user@54.68.137.36 12.048s
- ** Invoke etepia:doctrine:migrate (first_time)
- ** Execute etepia:doctrine:migrate
- 00:21 etepia:doctrine:migrate
- 01 php /mnt/www/etepia/releases/20180624145630/bin/console doctrine:database:create --if-not-exists --no-debug --env=staging
- 01 Database `etepia` for connection named default already exists. Skipped.
- ✔ 01 ec2-user@54.68.137.36 1.650s
- 02 php /mnt/www/etepia/releases/20180624145630/bin/console doctrine:migrations:migrate --no-interaction --no-debug --env=staging
- 02
- 02 Application Migrations
- 02
- 02
- 02 No migrations to execute.
- ✔ 02 ec2-user@54.68.137.36 0.281s
- ** Execute deploy:updated
- ** Invoke symfony:cache:warmup (first_time)
- ** Execute symfony:cache:warmup
- 00:23 symfony:cache:warmup
- 01 php /mnt/www/etepia/releases/20180624145630/bin/console cache:warmup --no-debug --env=staging
- 01
- 01 // Warming up the cache for the staging environment with debug
- 01 // false
- 01
- 01 [OK] Cache for the "staging" environment (debug=false) was successfully warmed.
- 01
- ✔ 01 ec2-user@54.68.137.36 4.634s
- ** Invoke symfony:clear_controllers (first_time)
- ** Invoke etepia:controller (first_time)
- ** Execute etepia:controller
- 00:27 etepia:controller
- 01 cp app_staging.php app.php
- ✔ 01 ec2-user@54.68.137.36 0.160s
- ** Execute symfony:clear_controllers
- 00:28 symfony:clear_controllers
- 01 rm -f app_*.php
- ✔ 01 ec2-user@54.68.137.36 0.155s
- ** Invoke symfony:assets:install (first_time)
- ** Execute symfony:assets:install
- 00:28 symfony:assets:install
- 01 php /mnt/www/etepia/releases/20180624145630/bin/console assets:install web --no-debug --env=staging
- 01
- 01 Installing assets as hard copies.
- 01
- 01 --- ------------------------------ ----------------
- 01 Bundle Method / Error
- 01 --- ------------------------------ ----------------
- 01 ✔ EtepiaMainBundle copy
- 01 ✔ FOSJsRoutingBundle copy
- 01 ✔ JMSJobQueueBundle copy
- 01 ✔ NelmioApiDocBundle copy
- 01 ✔ SonataAdminBundle copy
- 01 ✔ SonataCoreBundle copy
- 01 ✔ SonataMediaBundle copy
- 01 ✔ SonataUserBundle copy
- 01 ✔ WhiteOctoberPagerfantaBundle copy
- 01 --- ------------------------------ ----------------
- 01
- 01 ! [NOTE] Some assets were installed via copy. If you make changes to these
- 01 ! assets you have to run this command again.
- 01
- 01 [OK] All assets were successfully installed.
- 01
- ✔ 01 ec2-user@54.68.137.36 0.741s
- ** Invoke etepia:npm:install (first_time)
- ** Execute etepia:npm:install
- 00:29 etepia:npm:install
- 01 npm install
- 01 npm
- 01
- 01 WARN
- 01 deprecated
- 01 formidable@1.0.17: Old versions of Formidable are not compatible with the current Node.js; Upgrade to 1.2.0 or later
- 01 npm
- 01 WARN
- 01 bootstrap@4.1.1 requires a peer of popper.js@^1.14.3 but none is installed. You must install peer dependencies yourself.
- 01
- 01 added 104 packages in 3.556s
- ✔ 01 ec2-user@54.68.137.36 4.767s
- ** Invoke etepia:assets:dump (first_time)
- ** Execute etepia:assets:dump
- 00:34 etepia:assets:dump
- 01 php /mnt/www/etepia/releases/20180624145630/bin/console assetic:dump --no-debug --env=staging
- 01 Dumping all staging assets.
- 01 Debug mode is off.
- 01
- 01 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.ttf
- 01 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.woff
- 01 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.woff2
- 01 14:57:01 [file+] s3://etepia-staging/css/default-skin.png
- 01 14:57:01 [file+] s3://etepia-staging/css/default-skin.svg
- 01 14:57:01 [file+] s3://etepia-staging/css/app.css
- 01 14:57:09 [file+] s3://etepia-staging/js/3af1da2.js
- 01 14:57:11 ERROR [console] Error thrown while running command "assetic:dump --no-debug --env=staging". Message: "An error occurred while running:
- 01 '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_modules/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_uglifyjs2_innhYZNV'
- 01
- 01 Error Output:
- 01 Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20
- 01 let targetLink = e.target.parentElement,
- 01 ^
- 01 ERROR: Unexpected token: name (targetLink)
- 01 at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)
- 01 at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:291:53)
- 01 at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:235:9)
- 01 at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:160:5)
- 01 at Module._compile (internal/modules/cjs/loader.js:654:30)
- 01 at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
- 01 at Module.load (internal/modules/cjs/loader.js:566:32)
- 01 at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
- 01 at Function.Module._load (internal/modules/cjs/loader.js:498:3)
- 01 at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
- 01
- 01
- 01 Input:
- 01 $(document).ready(function(){
- 01 // PhotoSwipe popup HTML
- 01 function buildPswdHtml(){
- 01 $("body").append([
- 01 '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">',
- 01 ' <div class="pswp__bg"></div>',
- 01 ' <div class="pswp__scroll-wrap">',
- 01 ' <div class="pswp__container">',
- 01 ' <div class="pswp__item"></div>',
- 01 ' <div class="pswp__item"></div>',
- 01 ' <div class="pswp__item"></div>',
- 01 ' </div>',
- 01 ' <div class="pswp__ui pswp__ui--hidden">',
- 01 ' <div class="pswp__top-bar">',
- 01 ' <div class="pswp__counter"></div>',
- 01 ' <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>',
- 01 ' <button class="pswp__button pswp__button--share" title="Share"></button>',
- 01 ' <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>',
- 01 ' <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>',
- 01 ' <div class="pswp__preloader">',
- 01 ' <div class="pswp__preloader__icn">',
- 01 ' <div class="pswp__preloader__cut">',
- 01 ' <div class="pswp__preloader__donut"></div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 ' <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">',
- 01 ' <div class="pswp__share-tooltip"></div> ',
- 01 ' </div>',
- 01 ' <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>',
- 01 ' <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>',
- 01 ' <div class="pswp__caption">',
- 01 ' <div class="pswp__caption__center"></div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 '</div>'
- 01 ].join(""));
- 01 }
- 01
- 01
- 01 // Find PhotoSwipe items
- 01 function getGalleryItems($gallery){
- 01 var items = [];
- 01
- 01 $gallery.find("a").each(function(){
- 01 var $anchor = $(this),
- 01 size = $anchor.attr("data-size").split("x"),
- 01 title = $anchor.attr("data-title"),
- 01 item = {
- 01 el: $anchor.get(0),
- 01 src: $anchor.attr("href"),
- 01 w: parseInt(size[0]),
- 01 h: parseInt(size[1])
- 01 };
- 01
- 01 if( title ) item.title = title;
- 01
- 01 items.push(item);
- 01 });
- 01
- 01 return items;
- 01 }
- 01
- 01 function openGallery($gallery, index, items, pswpOptions){
- 01 var $pswp = $(".pswp"),
- 01 owl = $gallery.data("owlCarousel"),
- 01 gallery;
- 01
- 01 // オプション値を設定
- 01 var options = $.extend(true, {
- 01 index: index,
- 01
- 01 // Find out coordinates from which initial zoom-in animation will start (or zoom-out animation will end).
- 01 getThumbBoundsFn: function(index){
- 01 var $thumbnail = $(items[index].el).find("img"),
- 01 offset = $thumbnail.offset();
- 01 return {
- 01 x: offset.left,
- 01 y: offset.top,
- 01 w: $thumbnail.outerWidth()
- 01 };
- 01 }
- 01 }, pswpOptions);
- 01
- 01 gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items, options);
- 01 gallery.init();
- 01
- 01 gallery.listen("close", function(){
- 01 this.currItem.initialLayout = options.getThumbBoundsFn(this.getCurrentIndex());
- 01 });
- 01 }
- 01
- 01
- 01 // 初期化
- 01 function initializeGallery($elem, owlOptions, pswpOptions){
- 01
- 01 // If DOM for PhotoSwipe does not exist, render newly
- 01 if( $(".pswp").size() === 0 ){
- 01 buildPswdHtml();
- 01 }
- 01
- 01 // Scan to correspond to multiple galleries
- 01 $elem.each(function(i){
- 01 var $gallery = $(this),
- 01 uid = i + 1,
- 01 items = getGalleryItems($gallery),
- 01 options = $.extend(true, {}, pswpOptions);
- 01 // Initialization of OwlCarousel
- 01 $owl = $gallery.owlCarousel(owlOptions);
- 01 console.dir($owl);
- 01
- 01 // Assign unique ID to each gallery
- 01 options.galleryUID = uid;
- 01 $gallery.attr("data-pswp-uid", uid);
- 01
- 01 // Launch PhotoSwipe with each item click
- 01 $gallery.find(".owl-item").on("click", function(e) {
- 01 if( !$(e.target).is("img") ) return;
- 01 let targetLink = e.target.parentElement,
- 01 targetIndex = items.findIndex(el => el.src === targetLink.getAttribute('href'));
- 01 if (-1 === targetIndex) throw new Error('Underfined index');
- 01
- 01 openGallery($gallery, targetIndex, items.concat(), options);
- 01 return false;
- 01 });
- 01 });
- 01 }
- 01
- 01 // We perform processing on `.owl-carousel`
- 01 var owlOptions = {
- 01 loop: true,
- 01 margin: 2,
- 01 nav: true,
- 01 navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>", "<i class='fa fa-angle-right' aria-hidden='true'></i>"],
- 01 responsive:{
- 01 0:{
- 01 items:2
- 01 },
- 01 600:{
- 01 items:3
- 01 },
- 01 1000:{
- 01 items:4
- 01 }
- 01 }
- 01 },
- 01 tourPreviewHeader = document.getElementById('js-tour-preview'),
- 01 pswpOptions = {
- 01 bgOpacity: 0.9,
- 01 history: false,
- 01 shareEl: false,
- 01 barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHeight : 0, bottom:'auto'}
- 01 };
- 01
- 01
- 01
- 01 initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- 01
- 01 });
- 01 " ["exception" => Assetic\Exception\FilterException { …},"command" => "assetic:dump --no-debug --env=staging","message" => """ An error occurred while running:\n '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app...
- 01
- 01 In FilterException.php line 40:
- 01
- 01 An error occurred while running:
- 01 '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_module
- 01 s/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_ugli
- 01 fyjs2_innhYZNV'
- 01
- 01 Error Output:
- 01 Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20
- 01 let targetLink = e.target.parentElement,
- 01 ^
- 01 ERROR: Unexpected token: name (targetLink)
- 01 at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20
- 01 180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)
- 01 at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-j
- 01 s/bin/uglifyjs:291:53)
- 01 at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/
- 01 bin/uglifyjs:235:9)
- 01 at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_mod
- 01 ules/uglify-js/bin/uglifyjs:160:5)
- 01 at Module._compile (internal/modules/cjs/loader.js:654:30)
- 01 at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10
- 01 )
- 01 at Module.load (internal/modules/cjs/loader.js:566:32)
- 01 at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
- 01 at Function.Module._load (internal/modules/cjs/loader.js:498:3)
- 01 at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
- 01
- 01
- 01 Input:
- 01 $(document).ready(function(){
- 01 // PhotoSwipe popup HTML
- 01 function buildPswdHtml(){
- 01 $("body").append([
- 01 '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="tru
- 01 e">',
- 01 ' <div class="pswp__bg"></div>',
- 01 ' <div class="pswp__scroll-wrap">',
- 01 ' <div class="pswp__container">',
- 01 ' <div class="pswp__item"></div>',
- 01 ' <div class="pswp__item"></div>',
- 01 ' <div class="pswp__item"></div>',
- 01 ' </div>',
- 01 ' <div class="pswp__ui pswp__ui--hidden">',
- 01 ' <div class="pswp__top-bar">',
- 01 ' <div class="pswp__counter"></div>',
- 01 ' <button class="pswp__button pswp__button--close" tit
- 01 le="Close (Esc)"></button>',
- 01 ' <button class="pswp__button pswp__button--share" tit
- 01 le="Share"></button>',
- 01 ' <button class="pswp__button pswp__button--fs" title=
- 01 "Toggle fullscreen"></button>',
- 01 ' <button class="pswp__button pswp__button--zoom" titl
- 01
- 01 e="Zoom in/out"></button>',
- 01 ' <div class="pswp__preloader">',
- 01 ' <div class="pswp__preloader__icn">',
- 01 ' <div class="pswp__preloader__cut">',
- 01 ' <div class="pswp__preloader__donut"></div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 ' <div class="pswp__share-modal pswp__share-modal--hidden
- 01 pswp__single-tap">',
- 01 ' <div class="pswp__share-tooltip"></div> ',
- 01 ' </div>',
- 01 ' <button class="pswp__button pswp__button--arrow--left" t
- 01 itle="Previous (arrow left)"></button>',
- 01 ' <button class="pswp__button pswp__button--arrow--right"
- 01 title="Next (arrow right)"></button>',
- 01 ' <div class="pswp__caption">',
- 01 ' <div class="pswp__caption__center"></div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 ' </div>',
- 01 '</div>'
- 01
- 01 ].join(""));
- 01
- 01 }
- 01
- 01
- 01 // Find PhotoSwipe items
- 01 function getGalleryItems($gallery){
- 01 var items = [];
- 01
- 01 $gallery.find("a").each(function(){
- 01 var $anchor = $(this),
- 01 size = $anchor.attr("data-size").split("x"),
- 01 title = $anchor.attr("data-title"),
- 01 item = {
- 01 el: $anchor.get(0),
- 01 src: $anchor.attr("href"),
- 01
- 01 w: parseInt(size[0]),
- 01
- 01 h: parseInt(size[1])
- 01 };
- 01
- 01 if( title ) item.title = title;
- 01
- 01 items.push(item);
- 01 });
- 01
- 01 return items;
- 01 }
- 01
- 01 function openGallery($gallery, index, items, pswpOptions){
- 01 var $pswp = $(".pswp"),
- 01 owl = $gallery.data("owlCarousel"),
- 01
- 01 gallery;
- 01
- 01
- 01 // オプション値を設定
- 01 var options = $.extend(true, {
- 01 index: index,
- 01
- 01 // Find out coordinates from which initial zoom-in animation wi
- 01 ll start (or zoom-out animation will end).
- 01 getThumbBoundsFn: function(index){
- 01 var $thumbnail = $(items[index].el).find("img"),
- 01 offset = $thumbnail.offset();
- 01 return {
- 01 x: offset.left,
- 01 y: offset.top,
- 01 w: $thumbnail.outerWidth()
- 01 };
- 01 }
- 01 }, pswpOptions);
- 01
- 01 gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items,
- 01 options);
- 01 gallery.init();
- 01
- 01
- 01
- 01 gallery.listen("close", function(){
- 01 this.currItem.initialLayout = options.getThumbBoundsFn(this.get
- 01 CurrentIndex());
- 01 });
- 01 }
- 01
- 01
- 01 // 初期化
- 01 function initializeGallery($elem, owlOptions, pswpOptions){
- 01
- 01 // If DOM for PhotoSwipe does not exist, render newly
- 01 if( $(".pswp").size() === 0 ){
- 01 buildPswdHtml();
- 01 }
- 01
- 01 // Scan to correspond to multiple galleries
- 01 $elem.each(function(i){
- 01 var $gallery = $(this),
- 01 uid = i + 1,
- 01 items = getGalleryItems($gallery),
- 01 options = $.extend(true, {}, pswpOptions);
- 01
- 01 // Initialization of OwlCarousel
- 01
- 01 $owl = $gallery.owlCarousel(owlOptions);
- 01 console.dir($owl);
- 01
- 01 // Assign unique ID to each gallery
- 01 options.galleryUID = uid;
- 01 $gallery.attr("data-pswp-uid", uid);
- 01
- 01 // Launch PhotoSwipe with each item click
- 01 $gallery.find(".owl-item").on("click", function(e) {
- 01 if( !$(e.target).is("img") ) return;
- 01 let targetLink = e.target.parentElement,
- 01 targetIndex = items.findIndex(el => el.src === targetLi
- 01 nk.getAttribute('href'));
- 01 if (-1 === targetIndex) throw new Error('Underfined index')
- 01 ;
- 01
- 01 openGallery($gallery, targetIndex, items.concat(), options)
- 01 ;
- 01 return false;
- 01 });
- 01 });
- 01 }
- 01
- 01 // We perform processing on `.owl-carousel`
- 01 var owlOptions = {
- 01 loop: true,
- 01 margin: 2,
- 01 nav: true,
- 01 navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>"
- 01 , "<i class='fa fa-angle-right' aria-hidden='true'></i>"],
- 01 responsive:{
- 01 0:{
- 01 items:2
- 01 },
- 01
- 01 600:{
- 01
- 01 items:3
- 01 },
- 01 1000:{
- 01 items:4
- 01 }
- 01 }
- 01 },
- 01 tourPreviewHeader = document.getElementById('js-tour-preview'),
- 01 pswpOptions = {
- 01 bgOpacity: 0.9,
- 01 history: false,
- 01 shareEl: false,
- 01 barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHei
- 01 ght : 0, bottom:'auto'}
- 01 };
- 01
- 01
- 01
- 01
- 01
- 01 initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- 01
- 01 });
- 01
- 01
- 01 assetic:dump [--forks FORKS] [--watch] [--force] [--period PERIOD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--jms-job-id JMS-JOB-ID] [-…
- 01
- cap aborted!
- SSHKit::Runner::ExecuteError: Exception while executing as ec2-user@54.68.137.36: php exit status: 1
- php stdout: Dumping all staging assets.
- Debug mode is off.
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.ttf
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.woff
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.woff2
- 14:57:01 [file+] s3://etepia-staging/css/default-skin.png
- 14:57:01 [file+] s3://etepia-staging/css/default-skin.svg
- 14:57:01 [file+] s3://etepia-staging/css/app.css
- 14:57:09 [file+] s3://etepia-staging/js/3af1da2.js
- php stderr: 14:57:11 ERROR [console] Error thrown while running command "assetic:dump --no-debug --env=staging". Message: "An error occurred while running:
- '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_modules/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_uglifyjs2_innhYZNV'
- Error Output:
- Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20
- let targetLink = e.target.parentElement,
- ^
- ERROR: Unexpected token: name (targetLink)
- at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)
- at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:291:53)
- at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:235:9)
- at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:160:5)
- at Module._compile (internal/modules/cjs/loader.js:654:30)
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
- at Module.load (internal/modules/cjs/loader.js:566:32)
- at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
- at Function.Module._load (internal/modules/cjs/loader.js:498:3)
- at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
- Input:
- $(document).ready(function(){
- // PhotoSwipe popup HTML
- function buildPswdHtml(){
- $("body").append([
- '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">',
- ' <div class="pswp__bg"></div>',
- ' <div class="pswp__scroll-wrap">',
- ' <div class="pswp__container">',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' </div>',
- ' <div class="pswp__ui pswp__ui--hidden">',
- ' <div class="pswp__top-bar">',
- ' <div class="pswp__counter"></div>',
- ' <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>',
- ' <button class="pswp__button pswp__button--share" title="Share"></button>',
- ' <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>',
- ' <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>',
- ' <div class="pswp__preloader">',
- ' <div class="pswp__preloader__icn">',
- ' <div class="pswp__preloader__cut">',
- ' <div class="pswp__preloader__donut"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">',
- ' <div class="pswp__share-tooltip"></div> ',
- ' </div>',
- ' <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>',
- ' <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>',
- ' <div class="pswp__caption">',
- ' <div class="pswp__caption__center"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- '</div>'
- ].join(""));
- }
- // Find PhotoSwipe items
- function getGalleryItems($gallery){
- var items = [];
- $gallery.find("a").each(function(){
- var $anchor = $(this),
- size = $anchor.attr("data-size").split("x"),
- title = $anchor.attr("data-title"),
- item = {
- el: $anchor.get(0),
- src: $anchor.attr("href"),
- w: parseInt(size[0]),
- h: parseInt(size[1])
- };
- if( title ) item.title = title;
- items.push(item);
- });
- return items;
- }
- function openGallery($gallery, index, items, pswpOptions){
- var $pswp = $(".pswp"),
- owl = $gallery.data("owlCarousel"),
- gallery;
- // オプション値を設定
- var options = $.extend(true, {
- index: index,
- // Find out coordinates from which initial zoom-in animation will start (or zoom-out animation will end).
- getThumbBoundsFn: function(index){
- var $thumbnail = $(items[index].el).find("img"),
- offset = $thumbnail.offset();
- return {
- x: offset.left,
- y: offset.top,
- w: $thumbnail.outerWidth()
- };
- }
- }, pswpOptions);
- gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items, options);
- gallery.init();
- gallery.listen("close", function(){
- this.currItem.initialLayout = options.getThumbBoundsFn(this.getCurrentIndex());
- });
- }
- // 初期化
- function initializeGallery($elem, owlOptions, pswpOptions){
- // If DOM for PhotoSwipe does not exist, render newly
- if( $(".pswp").size() === 0 ){
- buildPswdHtml();
- }
- // Scan to correspond to multiple galleries
- $elem.each(function(i){
- var $gallery = $(this),
- uid = i + 1,
- items = getGalleryItems($gallery),
- options = $.extend(true, {}, pswpOptions);
- // Initialization of OwlCarousel
- $owl = $gallery.owlCarousel(owlOptions);
- console.dir($owl);
- // Assign unique ID to each gallery
- options.galleryUID = uid;
- $gallery.attr("data-pswp-uid", uid);
- // Launch PhotoSwipe with each item click
- $gallery.find(".owl-item").on("click", function(e) {
- if( !$(e.target).is("img") ) return;
- let targetLink = e.target.parentElement,
- targetIndex = items.findIndex(el => el.src === targetLink.getAttribute('href'));
- if (-1 === targetIndex) throw new Error('Underfined index');
- openGallery($gallery, targetIndex, items.concat(), options);
- return false;
- });
- });
- }
- // We perform processing on `.owl-carousel`
- var owlOptions = {
- loop: true,
- margin: 2,
- nav: true,
- navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>", "<i class='fa fa-angle-right' aria-hidden='true'></i>"],
- responsive:{
- 0:{
- items:2
- },
- 600:{
- items:3
- },
- 1000:{
- items:4
- }
- }
- },
- tourPreviewHeader = document.getElementById('js-tour-preview'),
- pswpOptions = {
- bgOpacity: 0.9,
- history: false,
- shareEl: false,
- barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHeight : 0, bottom:'auto'}
- };
- initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- });
- " ["exception" => Assetic\Exception\FilterException { …},"command" => "assetic:dump --no-debug --env=staging","message" => """ An error occurred while running:\n '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_modules/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_uglifyjs2_innhYZNV'\n \n Error Output:\n Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20\n let targetLink = e.target.parentElement,\n ^\n ERROR: Unexpected token: name (targetLink)\n at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)\n at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:291:53)\n at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:235:9)\n at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:160:5)\n at Module._compile (internal/modules/cjs/loader.js:654:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)\n at Module.load (internal/modules/cjs/loader.js:566:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:506:12)\n at Function.Module._load (internal/modules/cjs/loader.js:498:3)\n at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)\n \n \n Input:\n $(document).ready(function(){\n // PhotoSwipe popup HTML\n function buildPswdHtml(){\n $("body").append([\n '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">',\n ' <div class="pswp__bg"></div>',\n ' <div class="pswp__scroll-wrap">',\n ' <div class="pswp__container">',\n ' <div class="pswp__item"></div>',\n ' <div class="pswp__item"></div>',\n ' <div class="pswp__item"></div>',\n ' </div>',\n ' <div class="pswp__ui pswp__ui--hidden">',\n ' <div class="pswp__top-bar">',\n ' <div class="pswp__counter"></div>',\n ' <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>',\n ' <button class="pswp__button pswp__button--share" title="Share"></button>',\n ' <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>',\n ' <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>',\n ' <div class="pswp__preloader">',\n ' <div class="pswp__preloader__icn">',\n ' <div class="pswp__preloader__cut">',\n ' <div class="pswp__preloader__donut"></div>',\n ' </div>',\n ' </div>',\n ' </div>',\n ' </div>',\n ' <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">',\n ' <div class="pswp__share-tooltip"></div> ',\n ' </div>',\n ' <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>',\n ' <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>',\n ' <div class="pswp__caption">',\n ' <div class="pswp__caption__center"></div>',\n ' </div>',\n ' </div>',\n ' </div>',\n '</div>'\n ].join(""));\n }\n \n \n // Find PhotoSwipe items\n function getGalleryItems($gallery){\n var items = [];\n \n $gallery.find("a").each(function(){\n var $anchor = $(this),\n size = $anchor.attr("data-size").split("x"),\n title = $anchor.attr("data-title"),\n item = {\n el: $anchor.get(0),\n src: $anchor.attr("href"),\n w: parseInt(size[0]),\n h: parseInt(size[1])\n };\n \n if( title ) item.title = title;\n \n items.push(item);\n });\n \n return items;\n }\n \n function openGallery($gallery, index, items, pswpOptions){\n var $pswp = $(".pswp"),\n owl = $gallery.data("owlCarousel"),\n gallery;\n \n // オプション値を設定\n var options = $.extend(true, {\n index: index,\n \n // Find out coordinates from which initial zoom-in animation will start (or zoom-out animation will end).\n getThumbBoundsFn: function(index){\n var $thumbnail = $(items[index].el).find("img"),\n offset = $thumbnail.offset();\n return {\n x: offset.left,\n y: offset.top,\n w: $thumbnail.outerWidth()\n };\n }\n }, pswpOptions);\n \n gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items, options);\n gallery.init();\n \n gallery.listen("close", function(){\n this.currItem.initialLayout = options.getThumbBoundsFn(this.getCurrentIndex());\n });\n }\n \n \n // 初期化\n function initializeGallery($elem, owlOptions, pswpOptions){\n \n // If DOM for PhotoSwipe does not exist, render newly\n if( $(".pswp").size() === 0 ){\n buildPswdHtml();\n }\n \n // Scan to correspond to multiple galleries\n $elem.each(function(i){\n var $gallery = $(this),\n uid = i + 1,\n items = getGalleryItems($gallery),\n options = $.extend(true, {}, pswpOptions);\n // Initialization of OwlCarousel\n $owl = $gallery.owlCarousel(owlOptions);\n console.dir($owl);\n \n // Assign unique ID to each gallery\n options.galleryUID = uid;\n $gallery.attr("data-pswp-uid", uid);\n \n // Launch PhotoSwipe with each item click\n $gallery.find(".owl-item").on("click", function(e) {\n if( !$(e.target).is("img") ) return;\n let targetLink = e.target.parentElement,\n targetIndex = items.findIndex(el => el.src === targetLink.getAttribute('href'));\n if (-1 === targetIndex) throw new Error('Underfined index');\n \n openGallery($gallery, targetIndex, items.concat(), options);\n return false;\n });\n });\n }\n \n // We perform processing on `.owl-carousel`\n var owlOptions = {\n loop: true,\n margin: 2,\n nav: true,\n navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>", "<i class='fa fa-angle-right' aria-hidden='true'></i>"],\n responsive:{\n 0:{\n items:2\n },\n 600:{\n items:3\n },\n 1000:{\n items:4\n }\n }\n },\n tourPreviewHeader = document.getElementById('js-tour-preview'),\n pswpOptions = {\n bgOpacity: 0.9,\n history: false,\n shareEl: false,\n barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHeight : 0, bottom:'auto'}\n };\n \n \n \n initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);\n \n });\n """] []
- In FilterException.php line 40:
- An error occurred while running:
- '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_module
- s/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_ugli
- fyjs2_innhYZNV'
- Error Output:
- Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20
- let targetLink = e.target.parentElement,
- ^
- ERROR: Unexpected token: name (targetLink)
- at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20
- 180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)
- at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-j
- s/bin/uglifyjs:291:53)
- at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/
- bin/uglifyjs:235:9)
- at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_mod
- ules/uglify-js/bin/uglifyjs:160:5)
- at Module._compile (internal/modules/cjs/loader.js:654:30)
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10
- )
- at Module.load (internal/modules/cjs/loader.js:566:32)
- at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
- at Function.Module._load (internal/modules/cjs/loader.js:498:3)
- at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
- Input:
- $(document).ready(function(){
- // PhotoSwipe popup HTML
- function buildPswdHtml(){
- $("body").append([
- '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="tru
- e">',
- ' <div class="pswp__bg"></div>',
- ' <div class="pswp__scroll-wrap">',
- ' <div class="pswp__container">',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' </div>',
- ' <div class="pswp__ui pswp__ui--hidden">',
- ' <div class="pswp__top-bar">',
- ' <div class="pswp__counter"></div>',
- ' <button class="pswp__button pswp__button--close" tit
- le="Close (Esc)"></button>',
- ' <button class="pswp__button pswp__button--share" tit
- le="Share"></button>',
- ' <button class="pswp__button pswp__button--fs" title=
- "Toggle fullscreen"></button>',
- ' <button class="pswp__button pswp__button--zoom" titl
- e="Zoom in/out"></button>',
- ' <div class="pswp__preloader">',
- ' <div class="pswp__preloader__icn">',
- ' <div class="pswp__preloader__cut">',
- ' <div class="pswp__preloader__donut"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' <div class="pswp__share-modal pswp__share-modal--hidden
- pswp__single-tap">',
- ' <div class="pswp__share-tooltip"></div> ',
- ' </div>',
- ' <button class="pswp__button pswp__button--arrow--left" t
- itle="Previous (arrow left)"></button>',
- ' <button class="pswp__button pswp__button--arrow--right"
- title="Next (arrow right)"></button>',
- ' <div class="pswp__caption">',
- ' <div class="pswp__caption__center"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- '</div>'
- ].join(""));
- }
- // Find PhotoSwipe items
- function getGalleryItems($gallery){
- var items = [];
- $gallery.find("a").each(function(){
- var $anchor = $(this),
- size = $anchor.attr("data-size").split("x"),
- title = $anchor.attr("data-title"),
- item = {
- el: $anchor.get(0),
- src: $anchor.attr("href"),
- w: parseInt(size[0]),
- h: parseInt(size[1])
- };
- if( title ) item.title = title;
- items.push(item);
- });
- return items;
- }
- function openGallery($gallery, index, items, pswpOptions){
- var $pswp = $(".pswp"),
- owl = $gallery.data("owlCarousel"),
- gallery;
- // オプション値を設定
- var options = $.extend(true, {
- index: index,
- // Find out coordinates from which initial zoom-in animation wi
- ll start (or zoom-out animation will end).
- getThumbBoundsFn: function(index){
- var $thumbnail = $(items[index].el).find("img"),
- offset = $thumbnail.offset();
- return {
- x: offset.left,
- y: offset.top,
- w: $thumbnail.outerWidth()
- };
- }
- }, pswpOptions);
- gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items,
- options);
- gallery.init();
- gallery.listen("close", function(){
- this.currItem.initialLayout = options.getThumbBoundsFn(this.get
- CurrentIndex());
- });
- }
- // 初期化
- function initializeGallery($elem, owlOptions, pswpOptions){
- // If DOM for PhotoSwipe does not exist, render newly
- if( $(".pswp").size() === 0 ){
- buildPswdHtml();
- }
- // Scan to correspond to multiple galleries
- $elem.each(function(i){
- var $gallery = $(this),
- uid = i + 1,
- items = getGalleryItems($gallery),
- options = $.extend(true, {}, pswpOptions);
- // Initialization of OwlCarousel
- $owl = $gallery.owlCarousel(owlOptions);
- console.dir($owl);
- // Assign unique ID to each gallery
- options.galleryUID = uid;
- $gallery.attr("data-pswp-uid", uid);
- // Launch PhotoSwipe with each item click
- $gallery.find(".owl-item").on("click", function(e) {
- if( !$(e.target).is("img") ) return;
- let targetLink = e.target.parentElement,
- targetIndex = items.findIndex(el => el.src === targetLi
- nk.getAttribute('href'));
- if (-1 === targetIndex) throw new Error('Underfined index')
- ;
- openGallery($gallery, targetIndex, items.concat(), options)
- ;
- return false;
- });
- });
- }
- // We perform processing on `.owl-carousel`
- var owlOptions = {
- loop: true,
- margin: 2,
- nav: true,
- navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>"
- , "<i class='fa fa-angle-right' aria-hidden='true'></i>"],
- responsive:{
- 0:{
- items:2
- },
- 600:{
- items:3
- },
- 1000:{
- items:4
- }
- }
- },
- tourPreviewHeader = document.getElementById('js-tour-preview'),
- pswpOptions = {
- bgOpacity: 0.9,
- history: false,
- shareEl: false,
- barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHei
- ght : 0, bottom:'auto'}
- };
- initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- });
- assetic:dump [--forks FORKS] [--watch] [--force] [--period PERIOD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--jms-job-id JMS-JOB-ID] [--] <command> [<write_to>]
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
- Caused by:
- SSHKit::Command::Failed: php exit status: 1
- php stdout: Dumping all staging assets.
- Debug mode is off.
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.ttf
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.woff
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.woff2
- 14:57:01 [file+] s3://etepia-staging/css/default-skin.png
- 14:57:01 [file+] s3://etepia-staging/css/default-skin.svg
- 14:57:01 [file+] s3://etepia-staging/css/app.css
- 14:57:09 [file+] s3://etepia-staging/js/3af1da2.js
- php stderr: 14:57:11 ERROR [console] Error thrown while running command "assetic:dump --no-debug --env=staging". Message: "An error occurred while running:
- '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_modules/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_uglifyjs2_innhYZNV'
- Error Output:
- Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20
- let targetLink = e.target.parentElement,
- ^
- ERROR: Unexpected token: name (targetLink)
- at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)
- at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:291:53)
- at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:235:9)
- at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:160:5)
- at Module._compile (internal/modules/cjs/loader.js:654:30)
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
- at Module.load (internal/modules/cjs/loader.js:566:32)
- at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
- at Function.Module._load (internal/modules/cjs/loader.js:498:3)
- at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
- Input:
- $(document).ready(function(){
- // PhotoSwipe popup HTML
- function buildPswdHtml(){
- $("body").append([
- '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">',
- ' <div class="pswp__bg"></div>',
- ' <div class="pswp__scroll-wrap">',
- ' <div class="pswp__container">',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' </div>',
- ' <div class="pswp__ui pswp__ui--hidden">',
- ' <div class="pswp__top-bar">',
- ' <div class="pswp__counter"></div>',
- ' <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>',
- ' <button class="pswp__button pswp__button--share" title="Share"></button>',
- ' <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>',
- ' <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>',
- ' <div class="pswp__preloader">',
- ' <div class="pswp__preloader__icn">',
- ' <div class="pswp__preloader__cut">',
- ' <div class="pswp__preloader__donut"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">',
- ' <div class="pswp__share-tooltip"></div> ',
- ' </div>',
- ' <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>',
- ' <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>',
- ' <div class="pswp__caption">',
- ' <div class="pswp__caption__center"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- '</div>'
- ].join(""));
- }
- // Find PhotoSwipe items
- function getGalleryItems($gallery){
- var items = [];
- $gallery.find("a").each(function(){
- var $anchor = $(this),
- size = $anchor.attr("data-size").split("x"),
- title = $anchor.attr("data-title"),
- item = {
- el: $anchor.get(0),
- src: $anchor.attr("href"),
- w: parseInt(size[0]),
- h: parseInt(size[1])
- };
- if( title ) item.title = title;
- items.push(item);
- });
- return items;
- }
- function openGallery($gallery, index, items, pswpOptions){
- var $pswp = $(".pswp"),
- owl = $gallery.data("owlCarousel"),
- gallery;
- // オプション値を設定
- var options = $.extend(true, {
- index: index,
- // Find out coordinates from which initial zoom-in animation will start (or zoom-out animation will end).
- getThumbBoundsFn: function(index){
- var $thumbnail = $(items[index].el).find("img"),
- offset = $thumbnail.offset();
- return {
- x: offset.left,
- y: offset.top,
- w: $thumbnail.outerWidth()
- };
- }
- }, pswpOptions);
- gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items, options);
- gallery.init();
- gallery.listen("close", function(){
- this.currItem.initialLayout = options.getThumbBoundsFn(this.getCurrentIndex());
- });
- }
- // 初期化
- function initializeGallery($elem, owlOptions, pswpOptions){
- // If DOM for PhotoSwipe does not exist, render newly
- if( $(".pswp").size() === 0 ){
- buildPswdHtml();
- }
- // Scan to correspond to multiple galleries
- $elem.each(function(i){
- var $gallery = $(this),
- uid = i + 1,
- items = getGalleryItems($gallery),
- options = $.extend(true, {}, pswpOptions);
- // Initialization of OwlCarousel
- $owl = $gallery.owlCarousel(owlOptions);
- console.dir($owl);
- // Assign unique ID to each gallery
- options.galleryUID = uid;
- $gallery.attr("data-pswp-uid", uid);
- // Launch PhotoSwipe with each item click
- $gallery.find(".owl-item").on("click", function(e) {
- if( !$(e.target).is("img") ) return;
- let targetLink = e.target.parentElement,
- targetIndex = items.findIndex(el => el.src === targetLink.getAttribute('href'));
- if (-1 === targetIndex) throw new Error('Underfined index');
- openGallery($gallery, targetIndex, items.concat(), options);
- return false;
- });
- });
- }
- // We perform processing on `.owl-carousel`
- var owlOptions = {
- loop: true,
- margin: 2,
- nav: true,
- navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>", "<i class='fa fa-angle-right' aria-hidden='true'></i>"],
- responsive:{
- 0:{
- items:2
- },
- 600:{
- items:3
- },
- 1000:{
- items:4
- }
- }
- },
- tourPreviewHeader = document.getElementById('js-tour-preview'),
- pswpOptions = {
- bgOpacity: 0.9,
- history: false,
- shareEl: false,
- barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHeight : 0, bottom:'auto'}
- };
- initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- });
- " ["exception" => Assetic\Exception\FilterException { …},"command" => "assetic:dump --no-debug --env=staging","message" => """ An error occurred while running:\n '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_modules/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_uglifyjs2_innhYZNV'\n \n Error Output:\n Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20\n let targetLink = e.target.parentElement,\n ^\n ERROR: Unexpected token: name (targetLink)\n at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)\n at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:291:53)\n at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:235:9)\n at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:160:5)\n at Module._compile (internal/modules/cjs/loader.js:654:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)\n at Module.load (internal/modules/cjs/loader.js:566:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:506:12)\n at Function.Module._load (internal/modules/cjs/loader.js:498:3)\n at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)\n \n \n Input:\n $(document).ready(function(){\n // PhotoSwipe popup HTML\n function buildPswdHtml(){\n $("body").append([\n '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">',\n ' <div class="pswp__bg"></div>',\n ' <div class="pswp__scroll-wrap">',\n ' <div class="pswp__container">',\n ' <div class="pswp__item"></div>',\n ' <div class="pswp__item"></div>',\n ' <div class="pswp__item"></div>',\n ' </div>',\n ' <div class="pswp__ui pswp__ui--hidden">',\n ' <div class="pswp__top-bar">',\n ' <div class="pswp__counter"></div>',\n ' <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>',\n ' <button class="pswp__button pswp__button--share" title="Share"></button>',\n ' <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>',\n ' <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>',\n ' <div class="pswp__preloader">',\n ' <div class="pswp__preloader__icn">',\n ' <div class="pswp__preloader__cut">',\n ' <div class="pswp__preloader__donut"></div>',\n ' </div>',\n ' </div>',\n ' </div>',\n ' </div>',\n ' <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">',\n ' <div class="pswp__share-tooltip"></div> ',\n ' </div>',\n ' <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>',\n ' <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>',\n ' <div class="pswp__caption">',\n ' <div class="pswp__caption__center"></div>',\n ' </div>',\n ' </div>',\n ' </div>',\n '</div>'\n ].join(""));\n }\n \n \n // Find PhotoSwipe items\n function getGalleryItems($gallery){\n var items = [];\n \n $gallery.find("a").each(function(){\n var $anchor = $(this),\n size = $anchor.attr("data-size").split("x"),\n title = $anchor.attr("data-title"),\n item = {\n el: $anchor.get(0),\n src: $anchor.attr("href"),\n w: parseInt(size[0]),\n h: parseInt(size[1])\n };\n \n if( title ) item.title = title;\n \n items.push(item);\n });\n \n return items;\n }\n \n function openGallery($gallery, index, items, pswpOptions){\n var $pswp = $(".pswp"),\n owl = $gallery.data("owlCarousel"),\n gallery;\n \n // オプション値を設定\n var options = $.extend(true, {\n index: index,\n \n // Find out coordinates from which initial zoom-in animation will start (or zoom-out animation will end).\n getThumbBoundsFn: function(index){\n var $thumbnail = $(items[index].el).find("img"),\n offset = $thumbnail.offset();\n return {\n x: offset.left,\n y: offset.top,\n w: $thumbnail.outerWidth()\n };\n }\n }, pswpOptions);\n \n gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items, options);\n gallery.init();\n \n gallery.listen("close", function(){\n this.currItem.initialLayout = options.getThumbBoundsFn(this.getCurrentIndex());\n });\n }\n \n \n // 初期化\n function initializeGallery($elem, owlOptions, pswpOptions){\n \n // If DOM for PhotoSwipe does not exist, render newly\n if( $(".pswp").size() === 0 ){\n buildPswdHtml();\n }\n \n // Scan to correspond to multiple galleries\n $elem.each(function(i){\n var $gallery = $(this),\n uid = i + 1,\n items = getGalleryItems($gallery),\n options = $.extend(true, {}, pswpOptions);\n // Initialization of OwlCarousel\n $owl = $gallery.owlCarousel(owlOptions);\n console.dir($owl);\n \n // Assign unique ID to each gallery\n options.galleryUID = uid;\n $gallery.attr("data-pswp-uid", uid);\n \n // Launch PhotoSwipe with each item click\n $gallery.find(".owl-item").on("click", function(e) {\n if( !$(e.target).is("img") ) return;\n let targetLink = e.target.parentElement,\n targetIndex = items.findIndex(el => el.src === targetLink.getAttribute('href'));\n if (-1 === targetIndex) throw new Error('Underfined index');\n \n openGallery($gallery, targetIndex, items.concat(), options);\n return false;\n });\n });\n }\n \n // We perform processing on `.owl-carousel`\n var owlOptions = {\n loop: true,\n margin: 2,\n nav: true,\n navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>", "<i class='fa fa-angle-right' aria-hidden='true'></i>"],\n responsive:{\n 0:{\n items:2\n },\n 600:{\n items:3\n },\n 1000:{\n items:4\n }\n }\n },\n tourPreviewHeader = document.getElementById('js-tour-preview'),\n pswpOptions = {\n bgOpacity: 0.9,\n history: false,\n shareEl: false,\n barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHeight : 0, bottom:'auto'}\n };\n \n \n \n initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);\n \n });\n """] []
- In FilterException.php line 40:
- An error occurred while running:
- '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_module
- s/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_ugli
- fyjs2_innhYZNV'
- Error Output:
- Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20
- let targetLink = e.target.parentElement,
- ^
- ERROR: Unexpected token: name (targetLink)
- at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20
- 180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)
- at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-j
- s/bin/uglifyjs:291:53)
- at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/
- bin/uglifyjs:235:9)
- at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_mod
- ules/uglify-js/bin/uglifyjs:160:5)
- at Module._compile (internal/modules/cjs/loader.js:654:30)
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10
- )
- at Module.load (internal/modules/cjs/loader.js:566:32)
- at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
- at Function.Module._load (internal/modules/cjs/loader.js:498:3)
- at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
- Input:
- $(document).ready(function(){
- // PhotoSwipe popup HTML
- function buildPswdHtml(){
- $("body").append([
- '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="tru
- e">',
- ' <div class="pswp__bg"></div>',
- ' <div class="pswp__scroll-wrap">',
- ' <div class="pswp__container">',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' </div>',
- ' <div class="pswp__ui pswp__ui--hidden">',
- ' <div class="pswp__top-bar">',
- ' <div class="pswp__counter"></div>',
- ' <button class="pswp__button pswp__button--close" tit
- le="Close (Esc)"></button>',
- ' <button class="pswp__button pswp__button--share" tit
- le="Share"></button>',
- ' <button class="pswp__button pswp__button--fs" title=
- "Toggle fullscreen"></button>',
- ' <button class="pswp__button pswp__button--zoom" titl
- e="Zoom in/out"></button>',
- ' <div class="pswp__preloader">',
- ' <div class="pswp__preloader__icn">',
- ' <div class="pswp__preloader__cut">',
- ' <div class="pswp__preloader__donut"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' <div class="pswp__share-modal pswp__share-modal--hidden
- pswp__single-tap">',
- ' <div class="pswp__share-tooltip"></div> ',
- ' </div>',
- ' <button class="pswp__button pswp__button--arrow--left" t
- itle="Previous (arrow left)"></button>',
- ' <button class="pswp__button pswp__button--arrow--right"
- title="Next (arrow right)"></button>',
- ' <div class="pswp__caption">',
- ' <div class="pswp__caption__center"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- '</div>'
- ].join(""));
- }
- // Find PhotoSwipe items
- function getGalleryItems($gallery){
- var items = [];
- $gallery.find("a").each(function(){
- var $anchor = $(this),
- size = $anchor.attr("data-size").split("x"),
- title = $anchor.attr("data-title"),
- item = {
- el: $anchor.get(0),
- src: $anchor.attr("href"),
- w: parseInt(size[0]),
- h: parseInt(size[1])
- };
- if( title ) item.title = title;
- items.push(item);
- });
- return items;
- }
- function openGallery($gallery, index, items, pswpOptions){
- var $pswp = $(".pswp"),
- owl = $gallery.data("owlCarousel"),
- gallery;
- // オプション値を設定
- var options = $.extend(true, {
- index: index,
- // Find out coordinates from which initial zoom-in animation wi
- ll start (or zoom-out animation will end).
- getThumbBoundsFn: function(index){
- var $thumbnail = $(items[index].el).find("img"),
- offset = $thumbnail.offset();
- return {
- x: offset.left,
- y: offset.top,
- w: $thumbnail.outerWidth()
- };
- }
- }, pswpOptions);
- gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items,
- options);
- gallery.init();
- gallery.listen("close", function(){
- this.currItem.initialLayout = options.getThumbBoundsFn(this.get
- CurrentIndex());
- });
- }
- // 初期化
- function initializeGallery($elem, owlOptions, pswpOptions){
- // If DOM for PhotoSwipe does not exist, render newly
- if( $(".pswp").size() === 0 ){
- buildPswdHtml();
- }
- // Scan to correspond to multiple galleries
- $elem.each(function(i){
- var $gallery = $(this),
- uid = i + 1,
- items = getGalleryItems($gallery),
- options = $.extend(true, {}, pswpOptions);
- // Initialization of OwlCarousel
- $owl = $gallery.owlCarousel(owlOptions);
- console.dir($owl);
- // Assign unique ID to each gallery
- options.galleryUID = uid;
- $gallery.attr("data-pswp-uid", uid);
- // Launch PhotoSwipe with each item click
- $gallery.find(".owl-item").on("click", function(e) {
- if( !$(e.target).is("img") ) return;
- let targetLink = e.target.parentElement,
- targetIndex = items.findIndex(el => el.src === targetLi
- nk.getAttribute('href'));
- if (-1 === targetIndex) throw new Error('Underfined index')
- ;
- openGallery($gallery, targetIndex, items.concat(), options)
- ;
- return false;
- });
- });
- }
- // We perform processing on `.owl-carousel`
- var owlOptions = {
- loop: true,
- margin: 2,
- nav: true,
- navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>"
- , "<i class='fa fa-angle-right' aria-hidden='true'></i>"],
- responsive:{
- 0:{
- items:2
- },
- 600:{
- items:3
- },
- 1000:{
- items:4
- }
- }
- },
- tourPreviewHeader = document.getElementById('js-tour-preview'),
- pswpOptions = {
- bgOpacity: 0.9,
- history: false,
- shareEl: false,
- barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHei
- ght : 0, bottom:'auto'}
- };
- initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- });
- assetic:dump [--forks FORKS] [--watch] [--force] [--period PERIOD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--jms-job-id JMS-JOB-ID] [--] <command> [<write_to>]
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/command.rb:99:in `exit_status='
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/backends/netssh.rb:169:in `execute_command'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/backends/abstract.rb:141:in `block in create_command_and_execute'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/backends/abstract.rb:141:in `tap'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/backends/abstract.rb:141:in `create_command_and_execute'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/backends/abstract.rb:74:in `execute'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/capistrano-symfony-1.0.0.rc2/lib/capistrano/dsl/symfony.rb:52:in `symfony_console'
- config/deploy.rb:58:in `block (4 levels) in <top (required)>'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/backends/abstract.rb:29:in `instance_exec'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/backends/abstract.rb:29:in `run'
- /Users/wizardz/.rvm/gems/ruby-2.3.1@etepia/gems/sshkit-1.16.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
- Tasks: TOP => etepia:assets:dump
- The deploy has failed with an error: Exception while executing as ec2-user@54.68.137.36: php exit status: 1
- php stdout: Dumping all staging assets.
- Debug mode is off.
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.ttf
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.woff
- 14:57:01 [file+] s3://etepia-staging/fonts/fontawesome-webfont.woff2
- 14:57:01 [file+] s3://etepia-staging/css/default-skin.png
- 14:57:01 [file+] s3://etepia-staging/css/default-skin.svg
- 14:57:01 [file+] s3://etepia-staging/css/app.css
- 14:57:09 [file+] s3://etepia-staging/js/3af1da2.js
- php stderr: 14:57:11 ERROR [console] Error thrown while running command "assetic:dump --no-debug --env=staging". Message: "An error occurred while running:
- '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_modules/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_uglifyjs2_innhYZNV'
- Error Output:
- Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20
- let targetLink = e.target.parentElement,
- ^
- ERROR: Unexpected token: name (targetLink)
- at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)
- at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:291:53)
- at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:235:9)
- at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:160:5)
- at Module._compile (internal/modules/cjs/loader.js:654:30)
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
- at Module.load (internal/modules/cjs/loader.js:566:32)
- at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
- at Function.Module._load (internal/modules/cjs/loader.js:498:3)
- at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
- Input:
- $(document).ready(function(){
- // PhotoSwipe popup HTML
- function buildPswdHtml(){
- $("body").append([
- '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">',
- ' <div class="pswp__bg"></div>',
- ' <div class="pswp__scroll-wrap">',
- ' <div class="pswp__container">',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' </div>',
- ' <div class="pswp__ui pswp__ui--hidden">',
- ' <div class="pswp__top-bar">',
- ' <div class="pswp__counter"></div>',
- ' <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>',
- ' <button class="pswp__button pswp__button--share" title="Share"></button>',
- ' <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>',
- ' <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>',
- ' <div class="pswp__preloader">',
- ' <div class="pswp__preloader__icn">',
- ' <div class="pswp__preloader__cut">',
- ' <div class="pswp__preloader__donut"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">',
- ' <div class="pswp__share-tooltip"></div> ',
- ' </div>',
- ' <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>',
- ' <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>',
- ' <div class="pswp__caption">',
- ' <div class="pswp__caption__center"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- '</div>'
- ].join(""));
- }
- // Find PhotoSwipe items
- function getGalleryItems($gallery){
- var items = [];
- $gallery.find("a").each(function(){
- var $anchor = $(this),
- size = $anchor.attr("data-size").split("x"),
- title = $anchor.attr("data-title"),
- item = {
- el: $anchor.get(0),
- src: $anchor.attr("href"),
- w: parseInt(size[0]),
- h: parseInt(size[1])
- };
- if( title ) item.title = title;
- items.push(item);
- });
- return items;
- }
- function openGallery($gallery, index, items, pswpOptions){
- var $pswp = $(".pswp"),
- owl = $gallery.data("owlCarousel"),
- gallery;
- // オプション値を設定
- var options = $.extend(true, {
- index: index,
- // Find out coordinates from which initial zoom-in animation will start (or zoom-out animation will end).
- getThumbBoundsFn: function(index){
- var $thumbnail = $(items[index].el).find("img"),
- offset = $thumbnail.offset();
- return {
- x: offset.left,
- y: offset.top,
- w: $thumbnail.outerWidth()
- };
- }
- }, pswpOptions);
- gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items, options);
- gallery.init();
- gallery.listen("close", function(){
- this.currItem.initialLayout = options.getThumbBoundsFn(this.getCurrentIndex());
- });
- }
- // 初期化
- function initializeGallery($elem, owlOptions, pswpOptions){
- // If DOM for PhotoSwipe does not exist, render newly
- if( $(".pswp").size() === 0 ){
- buildPswdHtml();
- }
- // Scan to correspond to multiple galleries
- $elem.each(function(i){
- var $gallery = $(this),
- uid = i + 1,
- items = getGalleryItems($gallery),
- options = $.extend(true, {}, pswpOptions);
- // Initialization of OwlCarousel
- $owl = $gallery.owlCarousel(owlOptions);
- console.dir($owl);
- // Assign unique ID to each gallery
- options.galleryUID = uid;
- $gallery.attr("data-pswp-uid", uid);
- // Launch PhotoSwipe with each item click
- $gallery.find(".owl-item").on("click", function(e) {
- if( !$(e.target).is("img") ) return;
- let targetLink = e.target.parentElement,
- targetIndex = items.findIndex(el => el.src === targetLink.getAttribute('href'));
- if (-1 === targetIndex) throw new Error('Underfined index');
- openGallery($gallery, targetIndex, items.concat(), options);
- return false;
- });
- });
- }
- // We perform processing on `.owl-carousel`
- var owlOptions = {
- loop: true,
- margin: 2,
- nav: true,
- navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>", "<i class='fa fa-angle-right' aria-hidden='true'></i>"],
- responsive:{
- 0:{
- items:2
- },
- 600:{
- items:3
- },
- 1000:{
- items:4
- }
- }
- },
- tourPreviewHeader = document.getElementById('js-tour-preview'),
- pswpOptions = {
- bgOpacity: 0.9,
- history: false,
- shareEl: false,
- barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHeight : 0, bottom:'auto'}
- };
- initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- });
- " ["exception" => Assetic\Exception\FilterException { …},"command" => "assetic:dump --no-debug --env=staging","message" => """ An error occurred while running:\n '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_modules/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_uglifyjs2_innhYZNV'\n \n Error Output:\n Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20\n let targetLink = e.target.parentElement,\n ^\n ERROR: Unexpected token: name (targetLink)\n at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)\n at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:291:53)\n at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:235:9)\n at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/bin/uglifyjs:160:5)\n at Module._compile (internal/modules/cjs/loader.js:654:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)\n at Module.load (internal/modules/cjs/loader.js:566:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:506:12)\n at Function.Module._load (internal/modules/cjs/loader.js:498:3)\n at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)\n \n \n Input:\n $(document).ready(function(){\n // PhotoSwipe popup HTML\n function buildPswdHtml(){\n $("body").append([\n '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">',\n ' <div class="pswp__bg"></div>',\n ' <div class="pswp__scroll-wrap">',\n ' <div class="pswp__container">',\n ' <div class="pswp__item"></div>',\n ' <div class="pswp__item"></div>',\n ' <div class="pswp__item"></div>',\n ' </div>',\n ' <div class="pswp__ui pswp__ui--hidden">',\n ' <div class="pswp__top-bar">',\n ' <div class="pswp__counter"></div>',\n ' <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>',\n ' <button class="pswp__button pswp__button--share" title="Share"></button>',\n ' <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>',\n ' <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>',\n ' <div class="pswp__preloader">',\n ' <div class="pswp__preloader__icn">',\n ' <div class="pswp__preloader__cut">',\n ' <div class="pswp__preloader__donut"></div>',\n ' </div>',\n ' </div>',\n ' </div>',\n ' </div>',\n ' <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">',\n ' <div class="pswp__share-tooltip"></div> ',\n ' </div>',\n ' <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>',\n ' <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>',\n ' <div class="pswp__caption">',\n ' <div class="pswp__caption__center"></div>',\n ' </div>',\n ' </div>',\n ' </div>',\n '</div>'\n ].join(""));\n }\n \n \n // Find PhotoSwipe items\n function getGalleryItems($gallery){\n var items = [];\n \n $gallery.find("a").each(function(){\n var $anchor = $(this),\n size = $anchor.attr("data-size").split("x"),\n title = $anchor.attr("data-title"),\n item = {\n el: $anchor.get(0),\n src: $anchor.attr("href"),\n w: parseInt(size[0]),\n h: parseInt(size[1])\n };\n \n if( title ) item.title = title;\n \n items.push(item);\n });\n \n return items;\n }\n \n function openGallery($gallery, index, items, pswpOptions){\n var $pswp = $(".pswp"),\n owl = $gallery.data("owlCarousel"),\n gallery;\n \n // オプション値を設定\n var options = $.extend(true, {\n index: index,\n \n // Find out coordinates from which initial zoom-in animation will start (or zoom-out animation will end).\n getThumbBoundsFn: function(index){\n var $thumbnail = $(items[index].el).find("img"),\n offset = $thumbnail.offset();\n return {\n x: offset.left,\n y: offset.top,\n w: $thumbnail.outerWidth()\n };\n }\n }, pswpOptions);\n \n gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items, options);\n gallery.init();\n \n gallery.listen("close", function(){\n this.currItem.initialLayout = options.getThumbBoundsFn(this.getCurrentIndex());\n });\n }\n \n \n // 初期化\n function initializeGallery($elem, owlOptions, pswpOptions){\n \n // If DOM for PhotoSwipe does not exist, render newly\n if( $(".pswp").size() === 0 ){\n buildPswdHtml();\n }\n \n // Scan to correspond to multiple galleries\n $elem.each(function(i){\n var $gallery = $(this),\n uid = i + 1,\n items = getGalleryItems($gallery),\n options = $.extend(true, {}, pswpOptions);\n // Initialization of OwlCarousel\n $owl = $gallery.owlCarousel(owlOptions);\n console.dir($owl);\n \n // Assign unique ID to each gallery\n options.galleryUID = uid;\n $gallery.attr("data-pswp-uid", uid);\n \n // Launch PhotoSwipe with each item click\n $gallery.find(".owl-item").on("click", function(e) {\n if( !$(e.target).is("img") ) return;\n let targetLink = e.target.parentElement,\n targetIndex = items.findIndex(el => el.src === targetLink.getAttribute('href'));\n if (-1 === targetIndex) throw new Error('Underfined index');\n \n openGallery($gallery, targetIndex, items.concat(), options);\n return false;\n });\n });\n }\n \n // We perform processing on `.owl-carousel`\n var owlOptions = {\n loop: true,\n margin: 2,\n nav: true,\n navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>", "<i class='fa fa-angle-right' aria-hidden='true'></i>"],\n responsive:{\n 0:{\n items:2\n },\n 600:{\n items:3\n },\n 1000:{\n items:4\n }\n }\n },\n tourPreviewHeader = document.getElementById('js-tour-preview'),\n pswpOptions = {\n bgOpacity: 0.9,\n history: false,\n shareEl: false,\n barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHeight : 0, bottom:'auto'}\n };\n \n \n \n initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);\n \n });\n """] []
- In FilterException.php line 40:
- An error occurred while running:
- '/usr/bin/node' '/mnt/www/etepia/releases/20180624145630/app/../node_module
- s/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outmn5B6O' '/tmp/assetic_ugli
- fyjs2_innhYZNV'
- Error Output:
- Parse error at /tmp/assetic_uglifyjs2_innhYZNV:121,20
- let targetLink = e.target.parentElement,
- ^
- ERROR: Unexpected token: name (targetLink)
- at JS_Parse_Error.get (eval at <anonymous> (/mnt/www/etepia/releases/20
- 180624145630/node_modules/uglify-js/tools/node.js:21:1), <anonymous>:73:23)
- at fatal (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-j
- s/bin/uglifyjs:291:53)
- at run (/mnt/www/etepia/releases/20180624145630/node_modules/uglify-js/
- bin/uglifyjs:235:9)
- at Object.<anonymous> (/mnt/www/etepia/releases/20180624145630/node_mod
- ules/uglify-js/bin/uglifyjs:160:5)
- at Module._compile (internal/modules/cjs/loader.js:654:30)
- at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10
- )
- at Module.load (internal/modules/cjs/loader.js:566:32)
- at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
- at Function.Module._load (internal/modules/cjs/loader.js:498:3)
- at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
- Input:
- $(document).ready(function(){
- // PhotoSwipe popup HTML
- function buildPswdHtml(){
- $("body").append([
- '<div class="pswp" tabindex="-1" role="dialog" aria-hidden="tru
- e">',
- ' <div class="pswp__bg"></div>',
- ' <div class="pswp__scroll-wrap">',
- ' <div class="pswp__container">',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' <div class="pswp__item"></div>',
- ' </div>',
- ' <div class="pswp__ui pswp__ui--hidden">',
- ' <div class="pswp__top-bar">',
- ' <div class="pswp__counter"></div>',
- ' <button class="pswp__button pswp__button--close" tit
- le="Close (Esc)"></button>',
- ' <button class="pswp__button pswp__button--share" tit
- le="Share"></button>',
- ' <button class="pswp__button pswp__button--fs" title=
- "Toggle fullscreen"></button>',
- ' <button class="pswp__button pswp__button--zoom" titl
- e="Zoom in/out"></button>',
- ' <div class="pswp__preloader">',
- ' <div class="pswp__preloader__icn">',
- ' <div class="pswp__preloader__cut">',
- ' <div class="pswp__preloader__donut"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' </div>',
- ' <div class="pswp__share-modal pswp__share-modal--hidden
- pswp__single-tap">',
- ' <div class="pswp__share-tooltip"></div> ',
- ' </div>',
- ' <button class="pswp__button pswp__button--arrow--left" t
- itle="Previous (arrow left)"></button>',
- ' <button class="pswp__button pswp__button--arrow--right"
- title="Next (arrow right)"></button>',
- ' <div class="pswp__caption">',
- ' <div class="pswp__caption__center"></div>',
- ' </div>',
- ' </div>',
- ' </div>',
- '</div>'
- ].join(""));
- }
- // Find PhotoSwipe items
- function getGalleryItems($gallery){
- var items = [];
- $gallery.find("a").each(function(){
- var $anchor = $(this),
- size = $anchor.attr("data-size").split("x"),
- title = $anchor.attr("data-title"),
- item = {
- el: $anchor.get(0),
- src: $anchor.attr("href"),
- w: parseInt(size[0]),
- h: parseInt(size[1])
- };
- if( title ) item.title = title;
- items.push(item);
- });
- return items;
- }
- function openGallery($gallery, index, items, pswpOptions){
- var $pswp = $(".pswp"),
- owl = $gallery.data("owlCarousel"),
- gallery;
- // オプション値を設定
- var options = $.extend(true, {
- index: index,
- // Find out coordinates from which initial zoom-in animation wi
- ll start (or zoom-out animation will end).
- getThumbBoundsFn: function(index){
- var $thumbnail = $(items[index].el).find("img"),
- offset = $thumbnail.offset();
- return {
- x: offset.left,
- y: offset.top,
- w: $thumbnail.outerWidth()
- };
- }
- }, pswpOptions);
- gallery = new PhotoSwipe($pswp.get(0), PhotoSwipeUI_Default, items,
- options);
- gallery.init();
- gallery.listen("close", function(){
- this.currItem.initialLayout = options.getThumbBoundsFn(this.get
- CurrentIndex());
- });
- }
- // 初期化
- function initializeGallery($elem, owlOptions, pswpOptions){
- // If DOM for PhotoSwipe does not exist, render newly
- if( $(".pswp").size() === 0 ){
- buildPswdHtml();
- }
- // Scan to correspond to multiple galleries
- $elem.each(function(i){
- var $gallery = $(this),
- uid = i + 1,
- items = getGalleryItems($gallery),
- options = $.extend(true, {}, pswpOptions);
- // Initialization of OwlCarousel
- $owl = $gallery.owlCarousel(owlOptions);
- console.dir($owl);
- // Assign unique ID to each gallery
- options.galleryUID = uid;
- $gallery.attr("data-pswp-uid", uid);
- // Launch PhotoSwipe with each item click
- $gallery.find(".owl-item").on("click", function(e) {
- if( !$(e.target).is("img") ) return;
- let targetLink = e.target.parentElement,
- targetIndex = items.findIndex(el => el.src === targetLi
- nk.getAttribute('href'));
- if (-1 === targetIndex) throw new Error('Underfined index')
- ;
- openGallery($gallery, targetIndex, items.concat(), options)
- ;
- return false;
- });
- });
- }
- // We perform processing on `.owl-carousel`
- var owlOptions = {
- loop: true,
- margin: 2,
- nav: true,
- navText: ["<i class='fa fa-angle-left' aria-hidden='true'></i>"
- , "<i class='fa fa-angle-right' aria-hidden='true'></i>"],
- responsive:{
- 0:{
- items:2
- },
- 600:{
- items:3
- },
- 1000:{
- items:4
- }
- }
- },
- tourPreviewHeader = document.getElementById('js-tour-preview'),
- pswpOptions = {
- bgOpacity: 0.9,
- history: false,
- shareEl: false,
- barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHei
- ght : 0, bottom:'auto'}
- };
- initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- });
- assetic:dump [--forks FORKS] [--watch] [--force] [--period PERIOD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--jms-job-id JMS-JOB-ID] [--] <command> [<write_to>]
- ** Invoke deploy:failed (first_time)
- ** Execute deploy:failed
- ** DEPLOY FAILED
- ** Refer to log/capistrano.log for details. Here are the last 20 lines:
- DEBUG [d846472c] tourPreviewHeader = document.getElementById('js-tour-preview'),
- DEBUG [d846472c] pswpOptions = {
- DEBUG [d846472c] bgOpacity: 0.9,
- DEBUG [d846472c] history: false,
- DEBUG [d846472c] shareEl: false,
- DEBUG [d846472c] barsSize: {top: tourPreviewHeader ? tourPreviewHeader.clientHei
- DEBUG [d846472c] ght : 0, bottom:'auto'}
- DEBUG [d846472c] };
- DEBUG [d846472c]
- DEBUG [d846472c]
- DEBUG [d846472c]
- DEBUG [d846472c] initializeGallery($(".owl-carousel"), owlOptions, pswpOptions);
- DEBUG [d846472c]
- DEBUG [d846472c] });
- DEBUG [d846472c]
- DEBUG [d846472c]
- DEBUG [d846472c] assetic:dump [--forks FORKS] [--watch] [--force] [--period PERIOD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--jms-job-id JMS-JOB-ID] [--] <command> [<write_to>]
Add Comment
Please, Sign In to add comment