Issue - malformed output of ghost ls
Running command ghost ls
with 5 ghost installation breaks randomly - meaning that new lines are not respected:
+ sudo systemctl is-active ghost_example-com
+ sudo systemctl is-active ghost_example-3-com
+ sudo systemctl is-active ghost_example-2-com
+ sudo systemctl is-active ghost_softhints-com
+ sudo systemctl is-active ghost_datascientyst-com
┌───────────────────┬────────────────┬─────────┬──────────────────────┬────────────────────────────┬──────┬─────────────────┐
│ Name │ Location │ Version │ Status │ URL │ Port │ Process Manager │
├───────────────────┼────────────────┼─────────┼──────────────────────┼────────────────────────────┼──────┼─────────────────┤
│ fantasyan-com │ /var/www/fanta │ 5.115.1 │ running (production) │ https://fantasyan.com/ │
Checking the command didn’t helped:
- Ghost-CLI/lib/commands/ls.js at main · TryGhost/Ghost-CLI · GitHub
- Ghost-CLI - A fully loaded tool for installation and configuration
Workaround
To get correct output I need to use:
ghost ls | tail -n 20
The issue persists for me for more than 20 versions.
Setup
The latest ghost version.
- What’s your URL?
- What version of Ghost are you using? If it’s not the latest, please update Ghost first before opening your topic
- 5.115.1
And
- How was Ghost installed and configured?
- self hosting
- What Node version, database, OS & browser are you using?
- Ubuntu server
- What errors or information do you see in the console?
- no errors
- What steps could someone else take to reproduce the issue you’re having?
- use ghost ls on multiple ghost installations
P.S. Probably this is self explanatory for future reference if anyone face the same issue.