Drupal 9 https://michalak.world/ en Drupal 9 Patch htaccess with Composer https://michalak.world/article/drupal-9-patch-htaccess-composer <span>Drupal 9 Patch htaccess with Composer</span> <span><span>useradmin</span></span> <span>Thu, 09/21/2023 - 12:28</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p>In composer.json add to the scripts section. See below:</p> <pre> "scripts": { "pre-install-cmd": [],   ... "post-drupal-scaffold-cmd": [ "patch -p1 &lt; patches/my-htaccess.patch" ] }, </pre> </div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=91&amp;2=comment&amp;3=comment" token="YwgHS-LCDb_Q9b7iBwPzs1DFMKlXOZP2gM97Z2nh3X8"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/composer"> <div class="field field--name-name field--type-string field--label-hidden field__item">Composer</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/configuration"> <div class="field field--name-name field--type-string field--label-hidden field__item">Configuration</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-9"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 9</div> </a></h2> </div> </li> </ul> </div> Thu, 21 Sep 2023 17:28:07 +0000 useradmin 91 at https://michalak.world https://michalak.world/article/drupal-9-patch-htaccess-composer#comments Update UUID in a Drupal Configuration https://michalak.world/article/update-uuid-drupal-configuration <span>Update UUID in a Drupal Configuration</span> <span><span>useradmin</span></span> <span>Thu, 08/03/2023 - 08:21</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p><strong>Update a UUID: </strong></p> <p><code>drush config-set "config.name" uuid "</code>a2afbb3b-d34f-42fd-bf0c-593a103aa6f4<code>"</code></p> <p><strong>Also how to generate an new UUID:</strong></p> <p><code>drush php-eval "echo \Drupal::service('uuid')-&gt;generate();"</code></p> <p><strong>Notes:</strong></p> <ul><li>Remember to back up your database first!</li> <li>Check your config:  <ul><li><code>drush config-get "config.name" uuid</code></li> </ul></li> </ul></div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=85&amp;2=comment&amp;3=comment" token="ufXfbn79uHOSWXxHGxLsZ5_R_iaIuBW6NTVHF2mTWsc"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-10"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 10</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-9"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 9</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drush"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drush</div> </a></h2> </div> </li> </ul> </div> Thu, 03 Aug 2023 13:21:14 +0000 useradmin 85 at https://michalak.world https://michalak.world/article/update-uuid-drupal-configuration#comments