Closed TheTechRobo closed 4 years ago
Nevermind you just don't add index.php at the end :)
Sorry for the dumb question
Oh actually, that loads readme.md
How do I do this?
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.
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.
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.
So every time I type another .md file I'll need to do it again?
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.
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.
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:
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 :)