You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ghost will not read custom theme in content/themes. #436
I have to admit that my experience with Themes in Ghost is extremely limited -- from https://ghost.org/help/installing-a-theme/#installing-a-theme-manually, it seems possible that Ghost does not auto-discover themes in that directory and that more is required for it to pick them up, but perhaps that's inaccurate and something else is happening here? 🤔
Ok, it took a lot of tries, and I got lost in some Ghost-specific details along the way, but the end result was success.
I'm running https://github.com/tianon/rawdns locally (which is why I'm using url=http://ghost.docker:2368), I don't have a mail server (hence mail__transport=stub), and I don't want to set up a separate database just for testing (hence database__ stuff):
$ # I start with `bash` instead of letting Ghost start since we need to restart Ghost after installing a theme and that was easier for me than doing this correctly with a volume, etc
$ docker run -it --rm --name ghost --pull=always --env database__client=sqlite3 --env database__connection__filename=content/data/ghost-non-production.db --env database__useNullAsDefault=true --env url=http://ghost.docker:2368 --env NODE_ENV=development --env mail__transport=stub ghost bashroot@96b1971bde38:/var/lib/ghost# # I started with "apt-get update" and "apt-get install git" so I can just "git clone" the theme laterroot@96b1971bde38:/var/lib/ghost# apt-get updateroot@96b1971bde38:/var/lib/ghost# apt-get install gitroot@96b1971bde38:/var/lib/ghost# # switch to the "node" user -- I should've used "--user node" instead but this is easy enoughroot@96b1971bde38:/var/lib/ghost# gosu node bashnode@96b1971bde38:/var/lib/ghost$ # initialize all the content directoriesnode@96b1971bde38:/var/lib/ghost$ docker-entrypoint.sh node current/index.js...Ctrl+Cnode@96b1971bde38:/var/lib/ghost$ git clone https://github.com/TryGhost/Starter.git content/themes/starternode@96b1971bde38:/var/lib/ghost$ cd content/themes/starter/node@96b1971bde38:/var/lib/ghost/content/themes/starter$ npm install...added 435 packages, and audited 436 packages in 4s...node@96b1971bde38:/var/lib/ghost/content/themes/starter$ cd /var/lib/ghost/node@96b1971bde38:/var/lib/ghost$ docker-entrypoint.sh node current/index.js...
Activity
tianon commentedon Apr 21, 2025
I have to admit that my experience with Themes in Ghost is extremely limited -- from https://ghost.org/help/installing-a-theme/#installing-a-theme-manually, it seems possible that Ghost does not auto-discover themes in that directory and that more is required for it to pick them up, but perhaps that's inaccurate and something else is happening here? 🤔
tianon commentedon Apr 21, 2025
Ok, it took a lot of tries, and I got lost in some Ghost-specific details along the way, but the end result was success.
I'm running https://github.com/tianon/rawdns locally (which is why I'm using
url=http://ghost.docker:2368), I don't have a mail server (hencemail__transport=stub), and I don't want to set up a separate database just for testing (hencedatabase__stuff):Now I was able to go in my browser to http://ghost.docker:2368/ghost/#/settings/design/change-theme and after setting things up I was able to successfully swap to my "Starter" theme.