guifi.net:entorno_desarrollo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guifi.net:entorno_desarrollo [2022/11/07 10:15] – jose | guifi.net:entorno_desarrollo [2022/11/08 05:08] (current) – jose | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Entorno de desarrollo para la web de Guifi ====== | ====== Entorno de desarrollo para la web de Guifi ====== | ||
Repositori: https:// | Repositori: https:// | ||
+ | |||
+ | https:// | ||
Drupal 9 | Drupal 9 | ||
Line 15: | Line 17: | ||
- 8096:80 | - 8096:80 | ||
volumes: | volumes: | ||
- | - / | + | - ' |
- | - / | + | - ' |
- | - / | + | - ' |
# this takes advantage of the feature in Docker that a new anonymous | # this takes advantage of the feature in Docker that a new anonymous | ||
# volume (which is what we're creating here) will be initialized with the | # volume (which is what we're creating here) will be initialized with the | ||
Line 28: | Line 30: | ||
volumes: | volumes: | ||
- ' | - ' | ||
- | restart: always | ||
environment: | environment: | ||
MYSQL_ROOT_PASSWORD: | MYSQL_ROOT_PASSWORD: | ||
Line 34: | Line 35: | ||
MYSQL_USER: net9 | MYSQL_USER: net9 | ||
MYSQL_PASSWORD: | MYSQL_PASSWORD: | ||
+ | ports: | ||
+ | - " | ||
+ | restart: always | ||
</ | </ | ||
Line 57: | Line 61: | ||
cd / | cd / | ||
sudo mkdir net9ldev | sudo mkdir net9ldev | ||
- | chmod www-data: | + | chown www-data: |
composer create-project drupal/ | composer create-project drupal/ | ||
</ | </ | ||
Line 72: | Line 76: | ||
</ | </ | ||
+ | Le damos permisos a todo como www-data (tarda un poquillo): | ||
+ | chown -R www-data: | ||
+ | Reiniciar apache | ||
drush si standard --db-url=mysql:// | drush si standard --db-url=mysql:// | ||
+ | | ||
+ | drush site-install standard -y --site-name=" | ||
+ | |||
+ | |||
+ | sed -i ' | ||
+ | | ||
+ | drush pm:enable action tracker inline_form_errors layout_builder layout_builder media media_library statistics telephone config_translation content_translation basic_auth jsonapi rest serialization | ||
+ | |||
+ | |||
+ | < | ||
+ | drush language-add ast | ||
+ | drush language-add eu | ||
+ | drush language-add ca | ||
+ | drush language-add fr | ||
+ | drush language-add gl | ||
+ | drush language-add de | ||
+ | drush language-add el | ||
+ | drush language-add it | ||
+ | drush language-add pt-pt | ||
+ | drush language-add es | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | composer require drupal/ | ||
+ | composer require drupal/ | ||
+ | composer require drupal/ | ||
+ | composer require drupal/ | ||
+ | composer require drupal/eva drupal/ | ||
+ | composer require drupal/ | ||
+ | composer require drupal/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | drush theme: | ||
+ | drush pm:enable admin_toolbar webform_remote_select webform_rest webform_ui field_group field_permissions field_validation popup_field_group --yes | ||
+ | drush pm:enable geocoder leaflet leaflet_markercluster leaflet_views geofield geofield_map views_bulk_operations bulk_update_fields views_data_export views_conditional --yes | ||
+ | drush pm:enable address field_layout tzfield geocoder_field geocoder_address geocoder_geofield conditional_fields calendar --yes | ||
+ | drush pm:enable eva prepopulate phone_international taxonomy_manager auto_entitylabel inline_entity_form ief_popup token devel --yes | ||
+ | drush pm:enable css_editor date_popup easy_breadcrumb eck external_entities keycloak openid_connect smtp taxonomy_term_revision views_dates views_ef_fieldset views_summarize views_timestamp_to_date view_custom_table views_autocomplete_filters views_aggregator pdf_serialization entity_extra_field entity_extra_field_ui --yes | ||
+ | drush en hacked coder security_review --yes | ||
+ | </ |
guifi.net/entorno_desarrollo.1667816123.txt.gz · Last modified: 2022/11/07 10:15 by jose