picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 615 forks source link

Install on GH Pages? #508

Closed TheTechRobo closed 4 years ago

TheTechRobo commented 4 years ago

I tried to unpack the release targz file into my thetechrobo.github.io repo and when I tried to type the link to index.php, Waterfox asked me if I want to download the file! NO! I clicked cancel and just a blank screen. please help :)

TheTechRobo commented 4 years ago

Nevermind you just don't add index.php at the end :)

Sorry for the dumb question

TheTechRobo commented 4 years ago

Oh actually, that loads readme.md

How do I do this?

Lomanic commented 4 years ago

Pico is not a static site generator (needs a php runtime to render webpages on each access), gh-pages is only able (and only permits) to host static files, not dynamic webpages generated with php for example.

TheTechRobo commented 4 years ago

Index.php is included though!

Sent from TtR's iPhone 4

Le 3 sept. 2019 à 15:47, "Lomanic" notifications@github.com<mailto:notifications@github.com> a écrit :

Pico is not a static site generator (needs a php runtime to render webpages on each access), gh-pages is only able (and only permits) to host static files, not dynamic webpages generated with php for example.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/picocms/Pico/issues/508?email_source=notifications&email_token=AMN7KRRDB4NFAMSNKBQ52UTQH25LPA5CNFSM4ITJNLM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5ZLFHA#issuecomment-527610524, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMN7KRSWJMSPGFWLAMJAMETQH25LPANCNFSM4ITJNLMQ.

PhrozenByte commented 4 years ago

Just as @Lomanic said, GitHub Pages doesn't support PHP. You'll have to install Pico locally and fetch the output of the resulting website using e.g. wget -r (i.e. using Pico as a static website generator). The resulting static .html files can then be uploaded to GitHub Pages.

TheTechRobo commented 4 years ago

So every time I type another .md file I'll need to do it again?

Elte156 commented 4 years ago

So every time I type another .md file I'll need to do it again?

Yes. Every change you make, you'll need to generate the .html files again.

PhrozenByte commented 4 years ago

It is possible to automatize the necessary steps with a simple script and, optionally, tools like Travis CI, however, please keep in mind that GitHub Pages is no classic "webhoster". Pico has extremely low system requirements, you just need PHP - it especially requires no database. You'll find suitable webhosters online starting from below $ 1 per month or even free-of-charge webhosters on which a small Pico website will run just fine.

stale[bot] commented 4 years 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: