~/.ghost/config not pupulated after ghost install fron non-root user
See original GitHub issueThere is also no info about modifying ~/.ghost/config
file when doing verbose installation.
It works however if I do the installation from root. How do I troubleshoot that?
[ghost@test strefadysk_prd]$ ghost ls
ββββββββ¬βββββββββββ¬βββββββββ¬ββββββ¬βββββββ¬ββββββββββββββββββ
β Name β Location β Status β Url β Port β Process Manager β
ββββββββ΄βββββββββββ΄βββββββββ΄ββββββ΄βββββββ΄ββββββββββββββββββ
[ghost@test strefadysk_prd]$ ghost install --no-stack --pname strefadysk_prd --url 'http://test.pl'
β Checking for latest Ghost version
β Running system checks
β Setting up install directory
β Downloading and installing Ghost v1.0.0-beta.1
β Moving files
? Enter your blog URL: http://test.pl
? Enter your MySQL hostname: localhost
? Enter your MySQL username: ghost
? Enter your MySQL password: [hidden]
? Enter your Ghost database name: strefadysk_prd
β Finishing setup
? Do you want to start Ghost? No
[ghost@test strefadysk_prd]$ ghost ls
ββββββββ¬βββββββββββ¬βββββββββ¬ββββββ¬βββββββ¬ββββββββββββββββββ
β Name β Location β Status β Url β Port β Process Manager β
ββββββββ΄βββββββββββ΄βββββββββ΄ββββββ΄βββββββ΄ββββββββββββββββββ
[ghost@test strefadysk_prd]$
[ghost@test strefadysk_prd]$ ls -la ~/.ghost/
drwxrwxr-x. 2 ghost ghost 4096 Jun 12 02:53 .
drwx------. 6 ghost ghost 4096 Jun 21 15:09 ..
-rw-rw-r--. 1 ghost ghost 17 Jun 21 16:46 config
[ghost@test strefadysk_prd]$ cat ~/.ghost/config
{"instances":[]}
Ghost Version: beta.1 OS: Centos 7.3 Database: MariaDB
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Root user permissions fix - Ghost
Running into trouble with root user permissions when spinning up a Ghost instance? Here's a quick guide to get things working again!
Read more >How To Configure and Maintain Ghost from the Command Line
Hi! Do i need to run my Ghost installation as root? Can I change to another user? And how would I go about...
Read more >How install Ghost in a subfolder - Ghostboard
Find out how to install Ghost in a subfolder like /ghost following this ... Set the URL ... Edit your Ghost config file,...
Read more >How to update Ghost on a v15.x TurnKey Ghost appliance
So here's how to change the default TurnKey Linux Ghost install and config to bring your Ghost install ... Important note for non...
Read more >How to install Ghost | InMotion Hosting
Installing Ghost. Note: You will need a VPS or dedicated server with root access to install Ghost. First, log into your server via...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So I did figure out what this was - if you have only one instance
ghost uninstall
sets the instances parameter in~/.ghost/config
to an empty array, rather than an empty object like itβs supposed to be. The next time you run ghost setup, it tries to set a value on an object and gets an empty array so it doesnβt work right.Fix will be released in 1.0.0-alpha.19
Ohβ¦that makes more sense then! Must have introduced this bug when working on cleaning up the instance list after
ghost uninstall
π