Skip to content

Commit

Permalink
Merge pull request #38 from davidjguru/SH-13
Browse files Browse the repository at this point in the history
Fix #13 - [CFG] - Implement specific Drupal Installation
  • Loading branch information
davidjguru authored Jul 15, 2022
2 parents 137d229 + 1f048c2 commit cc91482
Show file tree
Hide file tree
Showing 38 changed files with 222 additions and 241 deletions.
9 changes: 3 additions & 6 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ hooks:
- exec-host: "([ ! -f ./.ddev/docker-compose.mkdocs.yaml ] && mv ./mkdocs/docker-compose.mkdocs.yaml ./.ddev/) || (echo 'A MkDocs service file has been located in your system.')"
- exec-host: "([ -d ./mkdocs/docs ] && cd ./mkdocs/docs && git pull origin) || (git clone https://github.com/davidjguru/summerhouse.wiki.git ./mkdocs/docs)"
- exec-host: "cp -r ./images/assets/* ./frontend_react/src/assets/"
- exec-host: "cp -r ./images/assets/* ./backend_drupal/sites/default/files/"
- exec-host: "sed -i '12s/restart: \"no\"/restart: \"always\"/' ./.ddev/docker-compose.portainer.yaml"
post-start:
- exec: sudo echo alias ll=\"ls -lhA\" >> ~/.bashrc
Expand All @@ -30,12 +31,8 @@ hooks:
# Resolve all dependencies by Composer in container.
- composer: install
# Install Drupal after start if not installed already.
- exec: "(drush status bootstrap | grep -q Successful) || (drush site-install --site-name=SummerHouse --account-name=admin --account-pass=admin --db-url=mysql://db:db@db/db -y && drush user-add-role 'administrator' admin)"
- exec-host: "yes |ddev drush cset system.site uuid $(head -n 1 ./.settings/salt.txt)"
- exec: "drush cr"
- exec: "([ $(drush eval 'print_r(array_keys(\\Drupal::entityTypeManager()->getDefinitions()));' | grep shortcut -c) -gt 0 ] && (drush entity:delete shortcut_set) || (echo 'No shortcut entities were found in your system.'))"
- exec: "drush pmu shortcut -y"
- exec: "drush cim -y"
- exec: "(drush status bootstrap | grep -q Successful) || (drush site-install --existing-config --site-name=SummerHouse --account-name=admin --account-pass=admin --db-url=mysql://db:db@db/db -y && drush user-add-role 'administrator' admin)"
- exec: "yes | drush cset system.site uuid $(head -n 1 ./.settings/salt.txt)"
- exec: "drush cr"
# Generate 10 new nodes with type article.
- exec: "drush genc --bundles=article 10"
Expand Down
57 changes: 57 additions & 0 deletions backend_drupal/profiles/summer_house/summer_house.info,yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Summer House
type: profile
description: 'Custom Installation Profile for Summer House development.'
core_version_requirement: '^8.8.0 || ^9 || ^10'

distribution:
name: Summer House.
langcode: en

dependencies:
- automated_cron
- block
- block_content
- breakpoint
- ckeditor
- color
- comment
- config
- contact
- contextual
- datetime
- dblog
- dynamic_page_cache
- editor
- field
- field_ui
- file
- filter
- help
- history
- image
- link
- menu_ui
- node
- options
- page_cache
- path
- quickedit
- rdf
- search
- shortcut
- system
- taxonomy
- text
- toolbar
- tour
- update
- user
- views_ui
- menu_link_content
- views

themes:
- stable
- classy
- bartik
- seven
Empty file.
Empty file.
12 changes: 12 additions & 0 deletions backend_drupal/sites/default/files/sync/bartik.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
favicon:
mimetype: image/png
path: 'public://summerhouse_icon_1_512x512.png'
use_default: false
features:
comment_user_picture: true
comment_user_verification: true
favicon: true
node_user_picture: true
logo:
path: 'public://summerhouse_logo_reduced.png'
use_default: false

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
uuid: 5af4bc98-ac73-491d-8a6c-8dbfcfced847
uuid: 60256e26-a392-4887-808f-fcbf8e787076
langcode: en
status: true
dependencies:
Expand All @@ -7,7 +7,7 @@ dependencies:
theme:
- bartik
_core:
default_config_hash: y0bXRvKYQQKkf_RVxA3aOPGpIfKKsDOzzrWYCgjxJ9Y
default_config_hash: NjcxOBrPOiK5-38t56DwFBDVY4yer7YSlbRWXFuHe7A
id: bartik_breadcrumbs
theme: bartik
region: breadcrumb
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
uuid: ecf11e53-0ed2-4829-b51b-3107da4cd4ea
uuid: 333035bb-34af-4903-a951-4a145da9e4e8
langcode: en
status: true
dependencies:
Expand All @@ -7,7 +7,7 @@ dependencies:
theme:
- bartik
_core:
default_config_hash: kigu8pTxXt1qGR2NJ5HHdC4G2G1wsDrIjLPKBT5wUBc
default_config_hash: a0Yyx1GeyKarZ4T_yXQBR_ZFKnXiFLtxAb6gWLd8nr0
id: bartik_content
theme: bartik
region: content
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
uuid: ded53f8c-dfa2-420b-8ad3-82fc482c6555
uuid: 6cba46a2-5d29-4fed-93a0-aebe58cd92a5
langcode: en
status: true
dependencies:
Expand All @@ -7,11 +7,11 @@ dependencies:
theme:
- bartik
_core:
default_config_hash: '-laWx8WA-ikiIEH3NJQ0hVbjqk3iEuBms91LB0B4IQU'
default_config_hash: jccFSSVqV0WCDb6NtML1VWAWTtDbZ-zn5YgTRMgMrIM
id: bartik_help
theme: bartik
region: content
weight: -30
region: header
weight: -2
provider: null
plugin: help_block
settings:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
uuid: 20e5b0b9-6c7f-44d0-8322-33885228a2f4
uuid: 3e1c2bca-75fc-4ea8-9938-65408f3ae6f6
langcode: en
status: true
dependencies:
theme:
- bartik
_core:
default_config_hash: XRdb8LpbArVA6CpuuEZxzi50JIdjsJaCCZ5o3fH0Blk
default_config_hash: CdXfDmRgAvms7EQovxxWPdYi0GitxeRbVtScYK16ZH0
id: bartik_local_actions
theme: bartik
region: content
weight: -20
weight: -10
provider: null
plugin: local_actions_block
settings:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
uuid: d9f1c145-a621-405f-bea1-aa59df1f824b
uuid: 64ceec44-986c-4ea7-a06a-8eb2c5cd0fe1
langcode: en
status: true
dependencies:
Expand All @@ -7,7 +7,7 @@ dependencies:
theme:
- bartik
_core:
default_config_hash: KC12e0aosUnBBs5bd374JVcQjJaFNOSIHzu0dUGf22o
default_config_hash: '-Ac3ISpIT0PQ-whzD7_dw0SdKi6dAbRFNWdSjOiVDqg'
id: bartik_messages
theme: bartik
region: highlighted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
uuid: 316840b2-4f2a-44cf-b447-d611d8281b19
uuid: e51093cd-5092-47a4-a222-eea97fd96564
langcode: en
status: true
dependencies:
theme:
- bartik
_core:
default_config_hash: ItFhhiUOoeR7oIq73ZaCV7PAYrOwXZ-9fazMzF5DJXM
default_config_hash: fNwDdW063tk_ktzSWzZVeQS9wzvLooVO280BQ9WrsIs
id: bartik_page_title
theme: bartik
region: content
weight: -50
region: header
weight: -3
provider: null
plugin: page_title_block
settings:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: cf6dca47-d509-4b4b-a3ec-4742589d7d80
langcode: en
status: true
dependencies:
theme:
- bartik
_core:
default_config_hash: ACjBZI5shAMiiUpsz-inLYVXDqNNXRnSzAWV3kV_8Hw
id: bartik_primary_local_tasks
theme: bartik
region: header
weight: -1
provider: null
plugin: local_tasks_block
settings:
id: local_tasks_block
label: 'Primary tabs'
label_display: '0'
provider: core
primary: true
secondary: false
visibility: { }

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
uuid: cdef0ee1-570f-484d-a1f4-30234efbe336
uuid: 8a46f1f0-a22b-454c-8778-677065e5d2ef
langcode: en
status: true
dependencies:
theme:
- bartik
_core:
default_config_hash: Qf2BoIzd9py5AYXZj8fJzCYDyVk1-AWXcu-AqQeDZKA
id: bartik_local_tasks
default_config_hash: 2L0geP-ixCbCkEpW6BVF6H7vDUZN4ea07_Y9CociQm4
id: bartik_secondary_local_tasks
theme: bartik
region: content
weight: -40
region: header
weight: 0
provider: null
plugin: local_tasks_block
settings:
id: local_tasks_block
label: Tabs
label: 'Secondary tabs'
label_display: '0'
provider: core
primary: true
primary: false
secondary: true
visibility: { }
Loading

0 comments on commit cc91482

Please sign in to comment.