0

I've been searching with a couple different terms but didn't find exactly what I was looking for.

I got the idea to start a blog with a flat file CMS. It would be handy to have the pages in a git repository, so I can easily update the blog from anywhere and have it automatically update with webhook. The question is, could I safely, just clone and pull the changes to the public content on the server? Or should I rather clone it to some un-published folder and copy the files to the public contents?

I think about using Grav for the CMS, btw.

dscham
  • 111
  • 3

1 Answers1

1

Safe enough. There's CMS systems out there that already do this, such as Jekyll.

Ackack
  • 989
  • 5
  • 11
  • That's kind of where I got the idea from. I'm still not sure if it's good practice to do so though. It's just a hobby project, anyway, but I still don't want to employ bad practice just because it's easy and popular ;-) – dscham Mar 29 '21 at 22:47
  • 1
    Let me ask you this instead: what negatives do you see to it that would make it not a good practice? – Ackack Mar 29 '21 at 23:18
  • Thinking about it like that I can't see any particular reason. It just feels weird to have a quasi public folder directly linked to a repository. It's a gut-feeling I'd say. – dscham Mar 30 '21 at 06:55