Aktuelle Version |
Dein Text |
Zeile 5: |
Zeile 5: |
| == Installation einer Instanz zum Testen von Ghost als Container für TurnKey Linux auf Proxmox == | | == Installation einer Instanz zum Testen von Ghost als Container für TurnKey Linux auf Proxmox == |
|
| |
|
| ; Vorarbeit: | | ; Vorabeit: |
| * Erstellen vom Eintrag für DNS | | * Erstellen vom Eintrag für DNS |
| ** Eintrag A für ''test.ghost.htw.stura-dresden.de'' auf ''141.56.51.194'' | | ** Eintrag A für ''test.ghost.htw.stura-dresden.de'' auf ''141.56.51.194'' |
Zeile 51: |
Zeile 51: |
| ::; Nesting: [X] | | ::; Nesting: [X] |
| Starten! | | Starten! |
| | |
| | <s> |
| | ; Datacenter (cluster): |
| | :; HA: |
| | ::; Resources: |
| | :::; Add: |
| | ::::; VM: <tt>110</tt> |
| | ::::: <tt>110</tt> ist die ID der Instanz innerhalb von Proxmox. |
| | ::::; Group: ''HA_cluster'' |
| | ::::; Add: |
| | </s> |
|
| |
|
| Verbinden per ssh | | Verbinden per ssh |
Zeile 86: |
Zeile 97: |
| └──────────────────────────────────────────────────────────┘ | | └──────────────────────────────────────────────────────────┘ |
| </pre> | | </pre> |
| ; DEV-GHOST appliance services: '''Advanced Menu'''
| |
| ; Advanced Menu:
| |
| :; Reboot: '''Select'''
| |
| ::; (Confirm): '''Yes'''
| |
|
| |
| Verbinden per ssh
| |
| : <code>ssh root@test.ghost.htw.stura-dresden.de</code>
| |
|
| |
| : <code>confconsole</code>
| |
|
| |
| ; Lets encrypt: '''Select'''
| |
| ; Get certificate: '''Select'''
| |
| ; DNS must be configured before … <br />Do you wish to continue?: '''Yes'''
| |
| ; Before getting als Lets's Encrypt certificate …<br />Do you agree to the Lets's Encrypt Terms of Service?: '''Yes'''
| |
| ; Certificate Certificate Wildcard:
| |
| :; Donmain 1: <tt>test.ghost.htw.stura-dresden.de</tt>
| |
| :; Donmain 2: '''Apply'''
| |
| ; This will override… <br />. Continue?: '''Yes'''
| |
| ; Cert auto renew: '''Select'''
| |
| ; Automatic…<br />disabled: '''Toggle'''
| |
| ; Automatic…<br />enabled: '''Ok'''
| |
| ; Lets encrypt: '''Back'''
| |
|
| |
| ; Region config: '''Select'''
| |
| ; Tzdata: '''Select'''
| |
| ; Please select …<br />Geographic area: Europe
| |
| ; Please select …<br />Time zone: Berlin
| |
| ; Region config: '''Back'''
| |
|
| |
| ; Quit: '''Select'''
| |
| ; (Confirm): '''Yes'''
| |
|
| |
| <s>
| |
| : <code>apt update</code>
| |
| : <code>apt upgrade</code>
| |
| </s>
| |
| ----
| |
| ; Datacenter (cluster):
| |
| :; HA:
| |
| ::; Resources:
| |
| :::; Add:
| |
| ::::; VM: <tt>113</tt>
| |
| ::::; Group: ''HA_cluster''
| |
| ::::; Add:
| |
|
| |
| == Konfiguration einer Instanz zum Testen von Ghost als Container für TurnKey Linux auf Proxmox ==
| |
|
| |
| === Probleme und Lösungen für die Konfiguration einer Instanz zum Testen von Ghost als Container für TurnKey Linux auf Proxmox ===
| |
|
| |
| ; Problem: Das Hochladen von Dateien ist<!-- mit der Fehlermeldung ''please insert errror message here'' !--> nicht möglich.
| |
| : Das Problem ergibt sich beispielsweise, wenn ein Datei für ein Theme hochgeladen werden soll.
| |
| :: Das Problem betrifft die andere Dateien, also auch Dateien wie Bilder, Videos und so weiter, die über die Website hochgeladen werden sollen.
| |
| ; Lösung: Ändern (Erhöhen) der standardmäßigen maximalen Größe für Dateien, die durch einen Client beim Webserver hochgeladen werden dürfen.
| |
| Bearbeiten der Datei für die Konfiguration der Anwendung Nginx
| |
| : <code>$EDITOR /etc/nginx/nginx.conf</code>
| |
| : <code>nano /etc/nginx/nginx.conf</code>
| |
| :: Hinzufügen der Festlegung für die Variable ''[https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size client_max_body_size] auf die maximale Größe von 5 MB (im bestehenden Abschnitt ''http'' von ''Basic Settings'')
| |
| <pre></pre>
| |
| <pre>
| |
| http {
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| client_max_body_size 5M;
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| }
| |
| </pre>
| |
| <pre></pre>
| |
| Neuladen der Konfiguration der Anwendung Nginx
| |
| : <code>systemctl reload nginx</code>
| |
|
| |
| * Es lassen sich nun Dateien hochladen, die die Größe von 5 MB nicht überschreiten.
| |
| * Der Wert von 5 MB könnte auch auf eine andere Größe angepasst werden.
| |
|
| |
| == Aktualisierung einer Instanz zum Testen von Ghost als Container für TurnKey Linux auf Proxmox ==
| |
|
| |
| Aktualisierungen der Anwendung Ghost werden mit Ghost CLI vorgenommen.
| |
|
| |
| ===== Aktualisierung vom Paket ''npm'' =====
| |
|
| |
| Aktualisieren vom Paket ''npm'', der Verwaltung von Paketen von Node.js
| |
| <code>sudo npm install -g npm</code>
| |
|
| |
| ; Beispiel zum Hinweis auf eine verfügbare neuere Version:
| |
| Bei der Verwendung von <code>npm</code> wird darauf hingewiesen, wenn eine aktuellere Version von <code>npm</code> selbs verfügbar von ist.
| |
| <pre>
| |
|
| |
| ╭────────────────────────────────────────────────────────────────╮
| |
| │ │
| |
| │ New patch version of npm available! 6.14.4 -> 6.14.8 │
| |
| │ Changelog: https://github.com/npm/cli/releases/tag/v6.14.8 │
| |
| │ Run npm install -g npm to update! │
| |
| │ │
| |
| ╰────────────────────────────────────────────────────────────────╯
| |
|
| |
| </pre>
| |
|
| |
| ===== Aktualisierung vom Paket ''ghost-cli'' =====
| |
|
| |
| Vor der Aktualisierung vom Paket ''ghost-cli'' sollte eine [[#Aktualisierung vom Paket ''npm'']] durchgeführt werden, wenn eine Aktualisierung verfügbar ist.
| |
|
| |
| Aktualisieren vom Paket ''ghost-cli'' mit ''npm'', der Verwaltung von Paketen von Node.js
| |
| <code>sudo npm install -g ghost-cli@latest</code>
| |
|
| |
| ===== Aktualisierung von der Anwendung ''ghost'' =====
| |
|
| |
| Vor der Aktualisierung von Ghost sollte eine [[#Aktualisierung vom Paket ''ghost-cli'']] durchgeführt werden, wenn eine Aktualisierung verfügbar ist.
| |
| : Im Übrigen sollte die Version nach der [[#Aktualisierung vom Paket ''ghost-cli'']] mindestens so aktuell wie die Version für die [[#Aktualisierung von ''ghost'']] sein.
| |
|
| |
| Im Anschluss wird via Ghost CLI
| |
|
| |
| <s><!-- v@ 4 3b@: Problem, statt richtiges Vorgehen !-->
| |
| Aktualisieren der Anwendung Ghost mit ''ghost'', dem Programm vom Paket ''ghost-cli''
| |
| : <code>ghost update</code>
| |
|
| |
| Dabei wird folgender Fehler ausgeworfen
| |
| <pre>
| |
| Working directory is not a recognisable Ghost installation.
| |
| </pre>
| |
| <pre>
| |
| Run`ghost update` again within a folder where Ghost was installed with Ghost-CLI.
| |
| </pre>
| |
| Grund dafür ist, dass bei der Installation via TurnKey das Verzeichnis für die Installation nicht in <code>/var/www/</code> abgelegt wird, stattdessen ist dieses in <code>/opt/</code> anzufinden.
| |
| : Des Weiteren lässt sich der nicht via root ausführen, sonder den automatisch angelegten Benutzer ''ghost_user''.
| |
| </s>
| |
|
| |
| Wechseln in das Verzeichnis der Anwendung Ghost
| |
| : <code>cd /opt/ghost/</code>
| |
|
| |
| Im Anschluss das Update via Ghost CLI mit dem Benutzer ghost_user ausführen.
| |
|
| |
| Aktualisieren der Anwendung Ghost mit ''ghost'', dem Programm vom Paket ''ghost-cli'', als Account ''ghost_user''
| |
| : <code>su ghost_user -c 'ghost update'</code>
| |
| <pre></pre>
| |
| <pre>
| |
| + sudo systemctl is-active ghost_localhost
| |
| </pre>
| |
| : ''8''
| |
| <pre></pre>
| |
| <pre>
| |
| + sudo systemctl stop ghost_localhost
| |
| </pre>
| |
| : ''8''
| |
| <pre></pre>
| |
| <pre>
| |
| + sudo systemctl start ghost_localhost
| |
| </pre>
| |
| : ''8''
| |
| <pre></pre>
| |
|
| |
| Alle Komponenten der Anwendung Ghost sind nun aktuell.
| |