Zum Inhalt springen

Arbeiten mit Drupal

Aus Computech CMS Wiki

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


Drush

Drush erledigt alle Datenbank einstellungen.

  • Module Installieren: <copylink>drush en -y MODULENAME</copylink>
  • 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)

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 pack

zum Synchronisieren mit Github

Settings Sync