Workflow for Theme Development, Permissions Issues?

Aperta
#171 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
docker, docker-compose, shell

Direzione di ricerca

Inizia con lo stack docker-compose e il workflow del tema montato dall'host descritto nell'issue, concentrandoti sulla proprietà e sui permessi del container. Riproduci la configurazione con un'esportazione JSON e una cartella del tema, quindi documenta il workflow consigliato per lo sviluppo locale, inclusi i permessi che funzionano senza chmod 777 e rimangono compatibili con Ghost CLI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi!

I understand that this is a newer deployment pipeline for Ghost, but I happened to be building a local development workflow and discovered that this is where things are headed.

When I spin up the docker compose stack it works.

Now I copied my theme into the volume where it belongs. Upon restarting ghost, it tries to chown all of the theme files and doesn't start. Next, I tried chowning all of the theme files from the shell in my host environment to 1000:1000 (which does seem to be correct for the ghost container's user). That did not work either.

The only thing that worked is chmoding the theme to 777 from the host shell. Ghost starts fine, and the theme is accessible from the admin panel. Certainly this isn't the only solution though, right? Ghost CLI will not run a theme with these permissions. I want to develop on the exact same folder and permissions as I would deploy in production.

Bottom line, if I have a json export of my blog and a folder with my theme, what is the recommended workflow for local development?

Thank you for this fun, self-hosted tool. I've been using Ghost for over 10 years.

Lingua principale
Shell
Stelle
100
Fork
96
Merge medio
3h 4m
PR unite (30g)
118

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TryGhost/ghost-docker

Tutte le issue di TryGhost/ghost-docker

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.