Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

"php patternlab/core/console -generate" works local but not via jenkins #32

@KADlancer

Description

@KADlancer

Hi everyone,

I have integrated pattern lab (php/twig version via download, not composer) into an existing project (in a folder called patternlab/ )and I've got everything running locally (both via vagrant box and fully local with mamp).

I can run "php patternlab/core/console -generate" and all files in public/ are created as they should be. I even integrated that command via grunt shell and can run it automatically when needed.

If I push the project to gitlab and my jenkins does his thing (npm install -> grunt prod etc.) the command is fires as well, I can see the moment jenkins executes the script and get the usual log:

Running "shell:patternlab" (shell) task
configuring pattern lab...
your site has been generated...
site generation took 0.18935704231262 seconds and used 8.25MB of memory...

Done.

my local generate command is a bit slower
site generation took 1.3047921657562 seconds and used 8MB of memory...

If I browse to the deployed site, I'm getting a lot of 404s as a lot of stuff is missing.
public/css/ #missing
public/js/ #missing
public/fonts/ #missing
public/images/ #missing

from my public/patterns/ folder, most files are missing
00-atoms
00-atoms-04-images
00-atoms-04-images-00-logo #missing
00-atoms-06-buttons
00-atoms-06-buttons-01-buttons #missing
00-atoms-09-links
01-molecules
01-molecules-05-navigation
01-molecules-05-navigation-00-primary-nav #missing
01-molecules-05-navigation-01-language-nav #missing

02-organisms
02-organisms-00-global
02-organisms-00-global-00-header #missing
02-organisms-00-global-01-footer #missing
02-organisms-00-global-02-social #missing

02-organisms-04-forms
02-organisms-04-forms-00-contact #missing
03-templates
03-templates-00-layouts
03-templates-00-layouts-00-site #missing
03-templates-00-layouts-01-page-detail #missing
03-templates-00-layouts-01-page-legal #missing
03-templates-00-layouts-01-page-listing #missing
03-templates-00-layouts-01-page-scroll #missing
03-templates-01-index #missing
04-pages-01-index #missing

this is my output from php -v from jenkins log

PHP 5.6.33-0+deb8u1 (cli) (built: Jan  5 2018 15:46:26) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

and this is local (in vagrant)

PHP 5.5.9-1ubuntu4.24 (cli) (built: Mar 16 2018 12:41:43) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions