RESOLVED: migrated installation fails to serve css

Created on 18 April 2023, over 1 year ago

Problem/Motivation

migrated installation fails to serve css

Steps to reproduce

  1. using a snapshot of the production site, I deploy it to dev environment
  2. I use AT generator to create a subtheme
  3. using git init, git remote add, git push, I capture the subtheme in my remote repo
  4. I add the subtheme to my composer.json and commit the changes
  5. I took a snapshot of my site from development environment
  6. I used my deployment code to build from scratch a site in uat environment based on the composer.json which built the dev site, modified as described in point 4, above
  7. That deployment pipeline drops then restores the database, using the the db snapshot from dev environment

I get my site reproduced, with the expected AT generated subtheme enabled, the expected blocks are in the expected regions, the hand rolled custom css is still visible at: /admin/appearance/settings/my_custom_theme, but my custom css is not being served to the browser

Proposed resolution

seeking clues on how to resolve this

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

5.1

Component

User Experience

Created by

πŸ‡ΊπŸ‡ΈUnited States hesco

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @hesco
  • πŸ‡ΊπŸ‡ΈUnited States hesco
  • πŸ‡ΊπŸ‡ΈUnited States hesco
  • πŸ‡ΊπŸ‡ΈUnited States hesco

    RESOLVED:

    I'm guessing that edits to: /admin/appearance/settings/my_custom_theme, generate a file called: styles/css/generated/custom-css.css. I had imagined that this might be the case, and so used that path to make a small change to my custom css rules in my uat environment. But that failed to change the outcome. After resolving this issue, I checked on the uat installation and failed to find the expected generated file. I have no idea why that may be.

    This provided some clues about the issue.

    jenkins@efc9c26-01634:~/sites/ijan_crm/web/themes/custom/ijan$ git status 
    On branch master
    Your branch is up to date with 'origin/master'.
    
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
            styles/css/generated/custom-css.css
    

    I took these steps to resolve the issue:

    • ssh to my dev installation
    • cd to custom theme
    • used git status to inspect for changes
    • migrated content from styles/css/generated/custom-css.css to styles/css/custom.css
    • use git -m'commit message' styles/css/custom.css; git tag ; git push origin master --tags to push these changes to my remote repo
    • ssh to my uat installation
    • cd to custom theme
    • git pull origin master --tags
    • drush cr
    • inspect results to find that my custom css is now being served
  • πŸ‡ΊπŸ‡ΈUnited States hesco

    Have created pull request for atdocs project, here:
    https://github.com/jmburnz/atdocs/pull/1

  • πŸ‡ΊπŸ‡ΈUnited States hesco

    I have submitted a pull request on the atdocs project to document what I learned on this issue:
    https://github.com/jmburnz/atdocs/pull/1

Production build 0.71.5 2024