In .lando.yml:
proxy:
appserver:
- hostname: mysite.lndo.site
middlewares:
- name: CanBeAnything
key: 'basicauth.users'
value: 'lando:$$apr1$$5HI8Qwxp$$2/jNlE4mlQA0JPWblBSfy1'| diff --git a/src/Importer.php b/src/Importer.php | |
| index 423c8ff..cbc19e1 100644 | |
| --- a/src/Importer.php | |
| +++ b/src/Importer.php | |
| @@ -288,6 +288,11 @@ class Importer implements ImporterInterface { | |
| $entity = $this->contentEntityNormalizer->denormalize(Yaml::decode($contents)); | |
| } | |
| + // Skip if exists. | |
| + if (\Drupal::service('entity.repository')->loadEntityByUuid($entity->getEntityTypeId(), $entity->uuid())) { |
In .lando.yml:
proxy:
appserver:
- hostname: mysite.lndo.site
middlewares:
- name: CanBeAnything
key: 'basicauth.users'
value: 'lando:$$apr1$$5HI8Qwxp$$2/jNlE4mlQA0JPWblBSfy1'| #!/bin/bash | |
| # Check if a URL was provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <URL>" | |
| exit 1 | |
| fi | |
| # Assign the first argument to a variable | |
| URL="$1" |
| # View Apache setup. | |
| - name: Apache setup | |
| run: | | |
| echo '--- /etc/apache2 ---' | |
| sudo ls /etc/apache2 | |
| echo '--- /etc/apache2/conf-available ---' | |
| sudo ls /etc/apache2/conf-available | |
| echo '--- /etc/apache2/conf-enabled ---' | |
| sudo ls /etc/apache2/conf-enabled | |
| echo '--- /etc/apache2/mods-available ---' |