ponzu-cms / ponzu

Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
https://docs.ponzu-cms.org
BSD 3-Clause "New" or "Revised" License
5.67k stars 387 forks source link

Allow data directories outside pwd #333

Closed mangelajo closed 4 years ago

mangelajo commented 4 years ago

Running ponzu-cms inside a docker container, and maintaining data files in a volume (or several) was not possible with the previous directory schema without copying files or binaries to the volume.

This commit adds several environment variables to allow the administrator to specify paths for directories while retaining backwards compatibility.

mangelajo commented 4 years ago

@nilslice let me know if this looks ok, just trying to make deployment more flexible while retaining backwards compatibility.

nilslice commented 4 years ago

great idea - will take a closer look tonight. thank you!

mangelajo commented 4 years ago

I made a few corrections and it’s now deployed on https://cms.music.madrid on top of a small k8s instance. I will send another PR with instructions to build and deploy on top of k8s

mangelajo commented 4 years ago

@nilslice is there a way to upload images via the json API?, optionally I can post to the admin/edit endpoint I guess.

Oh I see there is the fileKeys in Create method of the go-client. Now I need to figure out how to use it.

mangelajo commented 4 years ago

Hey thanks @nilslice for adding me to the org :-), I'm happy to help!,

Do you want any help setting up CI with travis?, I have some experience with other projects. I see you were experimenting with circleCI I have no experience with them, but if you picked it because you believe it may work better I can have a look at that, if you have no preference I can do it quickly with travis.

mangelajo commented 4 years ago

btw I tried to join the slack, but it registration is closed, how can I get an invite?

nilslice commented 4 years ago

@mangelajo - I sent you an email invite through Slack.. used the email in your git commit (redhat) hope that's OK..

Do you want any help setting up CI with travis?,

Sure! I'm not tied to CircleCI at all.. I just have lost the time to really stay on top of this project's maintenance requirements, and CI is a pretty important part. Thanks for your help.