Arbeiten mit Drupal: Unterschied zwischen den Versionen
Erscheinungsbild
| Zeile 17: | Zeile 17: | ||
* Allgemein [[Drush]] | * Allgemein [[Drush]] | ||
* Module | * Module installieren: <copylink>drush en -y MODULENAME</copylink> (zuerst nachher mit composer remove... | ||
* Module deinstallieren: <copylink>drush pmu -y MODULENAME</copylink> | * Module deinstallieren: <copylink>drush pmu -y MODULENAME</copylink> | ||
Version vom 15. April 2020, 07:58 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