-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editing current theme #219
Comments
Hi, But let me try to help. You have to download the theme. Then, you must update it (it uses Handle Bar). See https://ghost.org/docs/api/v3/handlebars-themes/ Cheers! |
@AlexKalopsia please provide your |
Before editing your themes, you should be able to run ghost normally, then upload themes via the GUI in the admin panel. |
I have issue when starting the container, I can't work on the theme in intellij due to permissions access, the uid guid used are 1000, there's no way to change that, my user is another uid guid |
Can't help without details
|
The problem is that this image nukes any mounted volume's permissions with its I'm trying to set this up using Kubernetes, and I would like to develop my theme locally. If I mount from "./themes" to "/var/lib/ghost/content/themes", there are three ways it might go:
The entrypoint script should not chown nor change any permission of its files, as it works only on a small percentage of setups, and it's a nightmare to work around on others. |
For production setups, it's definitely useful, but I agree it's less than ideal for development workflows (the What I'd suggest here is to use a non-root user for the container, which will bypass the |
Not really, the |
To change file permission is very intrusive, I understand the need for something like this a couple of years ago, but now both in production (k8s has a way to define which permissions should be used to mount a volume) and dev (rootless) is a pain |
My workaround in docker-compose:
this works fine with podman rootless |
This is not practical or useful in development workflow. I want to be able to;
When you manually upload a theme in a local instance this workflow is broken. @pascalandy this is certainly an issue with the image as outlined quite succinctly by @1player. I understand that this is ideal for production but it is quite convoluted in development. Perhaps this can be addressed by documentation? I am trying some pretty insane things to try and bypass the way this image works. I really dont want to fork/maintain my own image that works for me so any tips on how to avoid that would be great. |
Ok, I have figured out a config that will support my desired worklow with the supplied official compose file. The trick was to mount my theme in the compose file directly to the theme directory;
This theme will not show up in the list of themese and you must click "advanced" to select it. |
Update: It was a more ideal setup to just add a volume(s) to the given docker-compose
Then you can just clone into your theme in the theme directory. It should be noted that you will need to run |
Hi everyone,
I am a bit confused as to how I am supposed to do some edits to my current theme. Even though I mounted
/content
, there are no files within the/themes
folder.What am I missing?
The text was updated successfully, but these errors were encountered: