Summary/Problem

I am using Drupal 8 and am trying to export, then later import, settings using Features. In particular, I want to export settings for the adavagg module. I have run into a problem. It seems certain settings in this module, namely Gzip CSS assets and Gzip JavaScript assets are not being exported.

Scenario

I have an application image that is Drupal site and database container. I deploy both in OpenShift server. In this case I am connecting Drupal into an existing database but I am facing this popular bug from the site, getting a plain text format from the homepage or related links. When checking the browser console, we are getting 404 response, no css or js files. There is an instance that when we issue drush cr it will probably generates all css and js files but that's not what I wanted. I want to have the image already built and when connected to the database, it is a fully functional site. So my issue is that these files are sometimes generated, sometimes not. I was able to find some solution using this module from this link. When I tried to enable the module and uncheck Gzip CSS assets and Gzip JavaScript assets as I beileve that's the same config as the link above but now in Drupal 8, then save config and the site actually generates all required files and my homepage will work.

Back to my goal I want to make everything work after connecting to existing database, and I want just to import features module config into my image. So what I am trying to figure out now is using drush features-import. I tried unchecking the config mentioned and write it as features module(features-advagg). So I test it, I check back the config and then write but im getting no change from the features module. I tried checking and unchecking Combine CSS files by using media queries and I am actually getting Changed status.

I am new to this approach and I believe `drush fim` might be my solution for this that when I import my custom module config into the image, then Drupal will generate all css and js files it needs.

Comments

johnreytanquinco created an issue. See original summary.

johnreytanquinco’s picture

Issue summary: View changes
johnreytanquinco’s picture

Issue summary: View changes
johnreytanquinco’s picture

Status: Active » Closed (duplicate)
johnreytanquinco’s picture