Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Showcase

Grav on github - publish to ftp host

Started by John Edwards 2 years ago · 5 replies · 400 views
2 years ago

This post is a statement; not a question, sharing for info if anyone is interested. Corrections or observations welcome.

I have set up local grav/docker (raspberry pi) with a blog+admin skeleton. This is cloned to a github repo (https://github.com/jzedwards/blog.simpubs.org). I have a .gitignore for backup, cache and logs.

My live grav is hosted on to a (free) x10hosting site, again with a clean blog+admin skeleton. Content is sync'd using the (fine) ftp Deploy github action to deploy only the user/pages folder.

The repo is visible for anyone to review and even clone (the ftp will not work without username and password secrets saved for the Action)

Limitations: I realise any template or config changes are NOT shared between local test and live, but I am happy with that, as I am trying to keep to a basic skeleton as the foundation.

Next steps: create a new testing branch on github to make and test changes to the local docker image, and then merge testing into main when happy, and this will deploy to live.

2 years ago

It's better to post a topic as a question and then answer it on a separate post and mark it as a solution (yes, you can mark your own posts as a solution 🙂). This helps in searches and also helps better understand the problem solution is for

👍 1
2 years ago

Thanks, it's great to share workflows. This is certainly a different take to mine but seems to use some of the same tools. I feel like my system is working pretty well so hopefully I'll get a moment to write that up one day too 🙂

👍 1
last edited 01/05/24 by Hugh Barnes
2 years ago

@jzedward:
ok, your post is now a solution; sorted 😉

Yeah.. That's far from what I've meant 🙄 My suggestion is nowhere near a solution 🙂

👍 2
2 years ago

We're getting meta now ..

@Karmalakas:
It’s better to post a topic as a question and then answer it on a separate post and mark it as a solution

I wondered if the problem was that the original post was made in a support category, but I changed it to "Showcase" and it still shows a 'Solution' box. Discourse also won't let me uncheck the marked solution. I'm slightly curious but not looking into this further 😕

Suggested topics

Topic Participants Replies Views Activity
Showcase · by Julien Perret, 3 months ago
3 133 1 month ago
Showcase · by Julien Perret, 2 months ago
4 142 2 months ago
Showcase · by Stuart, 5 months ago
1 124 5 months ago
Showcase · by Gez, 8 months ago
4 255 8 months ago
Showcase · by Roger Parkinson, 10 months ago
0 110 10 months ago