Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Possible to set the config.php values from env var? #14

Open
kaushalmodi opened this issue Apr 12, 2018 · 1 comment
Open

Possible to set the config.php values from env var? #14

kaushalmodi opened this issue Apr 12, 2018 · 1 comment

Comments

@kaushalmodi
Copy link

kaushalmodi commented Apr 12, 2018

Hello,

The config.php needs twitter api and stuff, which I believe shouldn't be publicly committed? or not committed to git at all, even if private?

Can those be set using env vars?

(On Netlify, I can set env vars like TWITTER_API_SECRET, and php can then read the value from the env var?)

[my config.php so far -- I am just committing things to my static dir for now, and then see how it goes.. I still have a big questionmark if this will even work for me on Netlify where I don't own/manage the hosting space.]

@kaushalmodi
Copy link
Author

kaushalmodi commented Apr 12, 2018

I have the micropub endpoint at https://scripter.co/nanopub/nanopub.php (I have removed that for now.. as Netlify doesn't allow running PHP) and micro blog at https://micro.blog/kaushalmodi.

Can you advice how to proceed from here to test if nanopub can work for my setup?

I still haven't been able to grab the full picture of how hugo and nanopub work together. If nanopub is creating content at outputdir/micro, wouldn't I need to re-trigger hugo to generate those pages?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant