Skip to content

deploy.sh does not upload a working Ghost static file hierarchy  #9

@AlexDaciuk

Description

@AlexDaciuk

Yesterday I was trying to setup Ghost in Github Pages with this tool

System : Arch Linux x64
Node: 8.11
npm: 6.1.0
yarn: 1.7.0
Ghost CLI: 1.7.3
Ghost: 1.23.0

After installing and having Ghost running in localhost without problems, when trying to deploy to github, the deploy.sh file doesn't upload all files correctly

After installing, in GHOST_PATH folder we end up with these folders

content/ 
current/ (which is a link to the latest version installed by Ghost CLI)
versions/
----> 1.23.0 (which is the latest version of Ghost today)
static/ (which is generated by buster)

Then, when you run deploy.sh, it runs a git add -A it does add all folders in GHOST_PATH, when we are really interested in the files in static, what is uploaded to github doesn't work

Adding an cd static/ before both **git add -A" make this work again, not sure if this is the more elegant solution though

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions