Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Grav on github - publish to ftp host

Started by John Edwards 3 years ago · 5 replies · 977 views
3 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.

3 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 hughbris
3 years ago Karmalakas It's better to post a topic as a question and then answer it on a separate post and mark i…

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 lynbor, 2 weeks ago
0 331 2 weeks ago
Showcase · by francois_fuchs, 4 weeks ago
3 447 4 weeks ago
Showcase · by kskt, 1 month ago
2 518 1 month ago
Showcase · by Anthony L., 2 months ago
2 554 1 month ago
Showcase · by Andy Miller, 3 months ago
2 950 2 months ago