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 07:58] – 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 | ||
| + | docker-compose.yml | ||
| + | < | ||
| + | version: ' | ||
| + | |||
| + | services: | ||
| + | |||
| + | drupal: | ||
| + | image: drupal: | ||
| + | ports: | ||
| + | - 8096:80 | ||
| + | volumes: | ||
| + | - ' | ||
| + | - ' | ||
| + | - ' | ||
| + | # 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 | ||
| + | # existing content of the image at the same location | ||
| + | - / | ||
| + | restart: always | ||
| + | |||
| + | db: | ||
| + | image: mysql:5.7 | ||
| + | volumes: | ||
| + | - ' | ||
| + | environment: | ||
| + | MYSQL_ROOT_PASSWORD: | ||
| + | MYSQL_DATABASE: | ||
| + | MYSQL_USER: net9 | ||
| + | MYSQL_PASSWORD: | ||
| + | ports: | ||
| + | - " | ||
| + | restart: always | ||
| + | </ | ||
| + | |||
| + | Configuramos docker-dupal: | ||
| + | docker exec -ti docker-drupal_drupal_1 bash | ||
| + | |||
| + | Instalar composer | ||
| < | < | ||
| php -r " | php -r " | ||
| Line 10: | Line 50: | ||
| php -r " | php -r " | ||
| - | sudo mv composer.phar / | + | mv composer.phar / |
| + | </ | ||
| + | |||
| + | Instalar DRUSH | ||
| + | composer require drush/ | ||
| + | |||
| + | |||
| + | Preparar entorno: | ||
| + | < | ||
| + | cd / | ||
| + | sudo mkdir net9ldev | ||
| + | chown www-data: | ||
| + | composer create-project drupal/ | ||
| + | </ | ||
| + | |||
| + | Install drupal | ||
| + | < | ||
| + | cd / | ||
| + | cp default.settings.php settings.php | ||
| + | chmod a+rw settings.php | ||
| + | mkdir files | ||
| + | chmod a+rw files | ||
| + | mkdir files/ | ||
| + | chmod a+rw files/ | ||
| + | </ | ||
| + | |||
| + | Le damos permisos a todo como www-data (tarda un poquillo): | ||
| + | chown -R www-data: | ||
| + | Reiniciar apache | ||
| + | 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.1667807903.txt.gz · Last modified: by jose
