Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Getting micropub working #5
Alright, here are some rough notes on getting https://github.com/voxpelli/webpage-micropub-to-github working with my blog, which is live at https://blog.bmannconsulting.com
I used the deploy to Heroku button, got it running right away.
There were a bunch of things I needed to add to my site to work with this stuff. First, there's this:
Instead of example.com, that's bmcblog-micropub.herokuapp.com.
For the indieauth steps you're going to have to do, you'll need to add at least one auth provider. For me, Github was the only one that worked. So, you need to edit your Github profile so that the link in your profile links to your blog. Then you'll need to add somewhere on your web page (doesn't have to be visible), the following:
A visible link:
Or header link:
As said elsewhere, trying to get Instagram posting to your own site is super useful and will walk you through the whole process:
You'll also want to use IndieAuth, so one more custom header:
At this point, I got through OWG, authenticated with my Github account (the only one that still seems to work).
I'm getting an error:
Now that I had indieauth working correctly, I discovered that https://micropublish.net/ is something else I could sign into with my blog (again, using Github auth).
I can see from Heroku logs that, signed in with IndieAuth to my blog.bmannconsulting.com, it is reading the micropub endpoint and passing it on to the server.
Github is giving an error, which is almost certainly about the wrong path.
Success! bmann/bmcblog@b0c1a44 (which is private, but trust me!)
OK, so figured it out -- the
only this causes a crash locally?
But on Heroku, if you delete the config var, then it crashes on layout name.
OK, let's go into handler.js and hardcode a few things!
OK, it still posts the default "social" category, so I'm not any farther ahead than when I first got it working.
Because of that social category, it makes it into my "main" feed, which does get posted to Twitter -- but also to LinkedIn and Medium! So fixing that category is going to have to happen.
And MicroBlog iOS still doesn't recognize the endpoint.