(support request)
What, if any are the drush commands for this module?
I would like to be able to use drush to toggle the "minified Source HTML" option to On or Off using drush.
This will be used in a shell script that moves a site from staging to production and uses drush to turn on this option in the script for the production site.
The goal is to be able to automating configuration of all the settings at the following admin page, from within a shell script using drush commands.
{site}/admin/config/development/performance
Comments
Comment #2
slydevil commentedDrupal 8:
The minify flag is part of the system.performance configuration object.
Turn it on:
drush cset system.performance minifyhtml.minify_html 1Turn it off:
drush cset system.performance minifyhtml.minify_html 0Drupal 7:
The minify flag is stored in the variables table.
Turn it on:
drush vset minifyhtml_minify 1Turn it off:
drush vset minifyhtml_minify 0I have not tested these commands. Once I do, I will add them to the readme/help of the module.
Comment #3
slydevil commentedComment #4
websiteworkspace commentedThanks so much for this documentation.
I will test these commands too, and report the results.
Addition of this information to the module readme file would probably help numerous other user of it.
--
I am also trying to track down all the related drush commands for the other settings that appear on the following drupal admin page:
{site}/admin/config/development/performance
My goal is to be able to run a shell script to apply these settings when a D8 site gets pushed from staging to production.
Any pointers on where to find the drush commands for the other settings on that page would be greatly appreciated.
--
Comment #5
slydevil commentedAdd drush commands to readme
Comment #6
slydevil commentedComment #8
slydevil commentedComment #10
slydevil commentedComment #12
slydevil commentedComment #13
websiteworkspace commentedThe drush command documented above does not work:
running "drush -n -y cset system.performance minifyhtml.minify_html 1"
returns the output:
Also, there isn't a drush command to toggle the "Strip comments from the source HTML" option either.