Where should I put a .ics calendar file on a Cloudron server such that it's accessible from the web?
-
HI!
I've got a script that generates an updated .ics calendar file for me every day. I have a website (Wordpress / Cloudron / my own domain).
I'd like to put the script on the same VPS as Cloudron and run it as a cron job. How should I do this? Where should I put the file such that the script can access it and update it without messing it up, AND it will be accessible via URL?
I just don't 100% understand how Cloudron works and I don't want to mess it up by tinkering with its insides
I could use Wordpress's Media Library feature to upload a single .ics, then ssh into the server, find it on disc, and have the script update it there...?
Pete
-
You can install the surfer app and put the ics file there. Surfer app simply hosts static files. There is also a CLI tool that your cron jobs can run to update the ics file. For the cron job, maybe you can put it in surfer's cron itself (not sure) - https://docs.cloudron.io/apps/#cron
-
@81ewlska said in Where should I put a .ics calendar file on a Cloudron server such that it's accessible from the web?:
Now time to see what can be eliminated...
And/ or time to upgrade to a larger server
-
There were a bunch of dangling images. Deleted those. Update failed because you no longer use AWS (....lol), but after https://forum.cloudron.io/post/59939
Update is complete. Well, 5 or 10 updates. Hey, everything kept working for years...!Surfer installed successfully. Thank you for your help!
Note to anyone doing this in the future: the updates will result in a lot of backups (which can be removed via the web interface or at /var/backups) and a bunch of dangling or unused docker images which can be removed with
docker system prune
or
docker system prune -a
-
-