Open DonRichards opened 1 month ago
Getting an error message when I run the script:
iMac:isle-dc aoneill$ make fix_views
Successfully copied 4.1kB to isle-dc-drupal-1:/var/www/drupal/patch_views.sh
/var/www/drupal/patch_views.sh: line 10: syntax error near unexpected token `('
[success] Cache rebuild complete.
iMac:isle-dc aoneill$
I just looked at the patch_views script and I think that error is happening because this line is meant to be a comment but is missing the "#" https://github.com/Islandora-Devops/isle-dc/blob/replace_console_with_drush/scripts/patch_views.sh#L10
Thanks Annie. I think you're right.
I still seem to be getting a syntax error when running the make command:
Alexanders-MacBook-Pro:isle-dc alexanderoneill$ make fix_views
Successfully copied 4.1kB to isle-dc-drupal-1:/var/www/drupal/patch_views.sh
/var/www/drupal/patch_views.sh: line 64: syntax error: unexpected end of file
[success] Cache rebuild complete.
Alexanders-MacBook-Pro:isle-dc alexanderoneill$ git pull origin `gcb`
From github.com:Islandora-Devops/isle-dc
* branch replace_console_with_drush -> FETCH_HEAD
Already up to date.
Alexanders-MacBook-Pro:isle-dc alexanderoneill$
@DonRichards Any ideas?
@alxp OK, I rewrote a lot of it to provide more clarity and to fix the error.
Drupal console is no longer being maintained and the latest version of isle-dc doesn't include it. It turns out it's pretty difficult to even install it at this point.
This PR is to:
To test:
Run the make command.
Output:
This should only select the enabled views, output the list to a file (/var/www/enabled_views.txt), and for each enabled view disable, then enable the view. Hopefully correcting any broken references within the view. Then it should run a few drush commands to clean up and rebuild cache/menus. This part was already part of the script.
This script could use some improvements but to keep the scope of this PR focussed it's mainly to replace drupal console with drush.