Arbeiten mit Drupal: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 3: | Zeile 3: | ||
* DNS:< | * DNS:<copylink>dev01</copylink> | ||
* IP:< | * IP:<copylink>10.14.30.28</copylink> DNS: <copylink>dev01</copylink> | ||
* User Name:< | * User Name:<copylink>www-data</copylink> | ||
* Passwort:[https://sharepoint.computech.ch/_layouts/15/DocIdRedir.aspx?ID=M4ANWU2MFUCJ-1180688842-50&e=LYcPKV Siehe Dokumentation] | * Passwort:[https://sharepoint.computech.ch/_layouts/15/DocIdRedir.aspx?ID=M4ANWU2MFUCJ-1180688842-50&e=LYcPKV Siehe Dokumentation] | ||
| Zeile 17: | Zeile 17: | ||
* Allgemein [[Drush]] | * Allgemein [[Drush]] | ||
* Module | * Module installieren: <copylink>drush en -y MODULENAME</copylink> (zuerst nachher mit composer remove... | ||
* Module | * Module deinstallieren: <copylink>drush pmu -y MODULENAME</copylink> | ||
* Drupal Cachle Leeren: < | * Drupal Cachle Leeren: <copylink>drush cr</copylink> | ||
* Drupal Cron Ausführen: < | * Drupal Cron Ausführen: <copylink>drush cron</copylink> | ||
Weitere Befehle: [[Drush Commands]] | Weitere Befehle: [[Drush Commands]] | ||
| Zeile 31: | Zeile 31: | ||
===Arbeiten mit Composer=== | ===Arbeiten mit Composer=== | ||
Vor dem Entfernen muss das Modul deinstalliert werden! | Vor dem Entfernen muss das Modul deinstalliert werden! | ||
* Module Installieren: < | * Module Installieren: <copylink>composer require 'drupal/ctools:^3.4'</copylink> | ||
* Mudule Entfernen: < | * Mudule Entfernen: <copylink>composer remove 'drupal/ctools'</copylink> | ||
==Drupal Installieren== | ==Drupal Installieren== | ||
* [[Drupal Installation und Grundkonfiguration]] | * [[Drupal Installation und Grundkonfiguration]] | ||
| Zeile 39: | Zeile 39: | ||
==Fish-Shell== | ==Fish-Shell== | ||
* zum Projekt: < | * zum Projekt: <copylink>d8 ARGUMENT</copylink> zum Beispiel: <copylink>d8 zeberliedv</copylink> | ||
===FISH Hilfe=== | ===FISH Hilfe=== | ||
* Hilfe aufrufen: < | * Hilfe aufrufen: <copylink>fish_help</copylink> | ||
<syntaxhighlight line='line' lang="bash"> | <syntaxhighlight line='line' lang="bash"> | ||
allgemeine Alias ******************************** | allgemeine Alias ******************************** | ||
Version vom 15. April 2020, 08:03 Uhr
Einloggen mit SSH
- DNS:<copylink>dev01</copylink>
- IP:<copylink>10.14.30.28</copylink> DNS: <copylink>dev01</copylink>
- User Name:<copylink>www-data</copylink>
- Passwort:Siehe Dokumentation
- WEB: http://dev01/
- PHP phpmyadmin: http://dev01/phpmyadmin
- SMB: \\dev01\www
Drush
Drush erledigt alle Datenbank einstellungen.
- Allgemein Drush
- Module installieren: <copylink>drush en -y MODULENAME</copylink> (zuerst nachher mit composer remove...
- Module deinstallieren: <copylink>drush pmu -y MODULENAME</copylink>
- Drupal Cachle Leeren: <copylink>drush cr</copylink>
- Drupal Cron Ausführen: <copylink>drush cron</copylink>
Weitere Befehle: Drush Commands
Composer
Composer Kümmert sich um das Dateisystem (Module, Themes, libraries, etc)
- Allgemein Composer
Arbeiten mit Composer
Vor dem Entfernen muss das Modul deinstalliert werden!
- Module Installieren: <copylink>composer require 'drupal/ctools:^3.4'</copylink>
- Mudule Entfernen: <copylink>composer remove 'drupal/ctools'</copylink>
Drupal Installieren
Diverses
Fish-Shell
- zum Projekt: <copylink>d8 ARGUMENT</copylink> zum Beispiel: <copylink>d8 zeberliedv</copylink>
FISH Hilfe
- Hilfe aufrufen: <copylink>fish_help</copylink>
allgemeine Alias ********************************
aliases -> Die Datei alieases.fish anpassen
e -> "session exit"
berechtigungen -> Chown Berechtigungen zu www-data setezen
berechtiguneen all -> berechtigungen all (Files und .git Verzeichnsi)
Drupal Spezifisch *******************************
d8 | d8 arg -> zu "D8" | "D8 zeberliedv" Ordner wechseln
www -> zu www Ordner wechseln
rsync Starten ********************************
sync arg -> "sync zeberliedv" Rsync für das Projekt "zeberliedv" ausführen
FISH / SSH **************************************
fish_update -> Fish einstellungen werden von Git wiederherstellen / updaten
ssh_update -> Serverliste von GIT updaten
ssh-key DOMAINNAME -> 1. "ssh_update" ausführen dann SSH Public Key "ssh-copy-id -i ~/.ssh/id_rsa.pub SERVER"auf einem neuen server installieren
Visual Studio Code (vs Code)
Erweiterungen
Beautify
Beautify css/sass/scss/less
Better Less
Color Highlight
CSS Peek
css-auto-prefix
Drupal 8 Twig Snippets
Drupal Syntax Highlighting
Duplicate selection or line
Easy LESS
HTML CSS Support
IntelliSense for CSS class names in HTML
Stylesheet Formatter
SVG Viewer
Twig Language
Twig Language 2
TWIG packzum Synchronisieren mit Github
Settings Sync