paladini / ghost-on-github-pages

Ghost on Github Pages. Build and deploy Ghost for free in a few minutes.
http://paladini.github.io/ghost-on-github-pages-demo/
MIT License
485 stars 69 forks source link

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

Open AlexDaciuk opened 6 years ago

AlexDaciuk commented 6 years ago

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