Kirby on Fly.io?

Has anybody here tried running a Kirby site on Fly.io?

I’m having a heck of a time getting the content/ folder to work from a mounted volume.

I figured it would work to create a symbolic link to where it expects the folder, but I’m getting such helpful error messages as:

File(/var/www/html/content/site.txt) is not within the allowed path(s): (/var/www/html:

I finally figured out a good solution thanks to this article: I just needed to mount the volume where I needed it instead of trying to symlink it: /var/www/html/content

I changed up this technique a bit and blogged about it. I hope this helps someone else!

3 Likes

Nice!

I wonder if there is a way to keep content in git as well.

Make sure the git client is installed in your Docker container, and you should be good to go with any plugin that supports this.