nextcloud / cms_pico

🗃 Integrate Pico CMS and let your users manage their own websites
https://apps.nextcloud.com/apps/cms_pico
GNU Affero General Public License v3.0
134 stars 41 forks source link

copy static website outside of nextcloud #244

Closed Sylvain303 closed 5 months ago

Sylvain303 commented 6 months ago

Hello,

I'm discovering both Pico CMS and your NextCloud app. Great job, it works well. I don't yet how to dive into NextCloud app code. I'm learning...

I would like to know if it would be possible to copy the static website else where on non-NextCloud hosting. A dedicated hosting outside of NextCloud. I suppose a rsync would do the job.

Where should I look for customizing the app to handle such behavior?

Regards, Sylvain.

Sylvain303 commented 6 months ago

Oh, 😯 I'm wrong!. Pico cms doesn't generate static website, the .md input files are static, not the produced website right?

So my question becomes less obvious. 🤔 ⏳️

PhrozenByte commented 6 months ago

As you already noted: Pico is no static website generator.

However, it doesn't have to be, since you need a custom mechanism to copy the website to another server anyway: Simply create a static copy of the website using wget -r (possibly wget -r -k) and upload the results. That's out of Pico's scope (i.e. no support, just wanted to give you some tip to look for yourself) and not really a Pico-specific approach, you might do exactly the same with any CMS.

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: