gerwitz / sitewriter

Bringing IndieWeb to the JAM (Micropub for static sites)
http://sitewriter.net/
MIT License
22 stars 0 forks source link

How can I change GitHub repository linked to a domain? #81

Closed paulrobertlloyd closed 6 years ago

paulrobertlloyd commented 6 years ago

I have recently updated my the design of my site, with the code saved in a new repository. This means I need to save posts to a different repo, but there seems to be no way of editing this value. Help!!

paulrobertlloyd commented 6 years ago

Looking at the code, there seems to be /[domain]/stores/new, but adding values here has no effect. Maybe there should be /[domain]/stores/[id] or similar where I can view and edit an existing store?

gerwitz commented 6 years ago

that /new is from an earlier iteration which was more customizable but harder to understand.

But in simplifying, I disabled the ability to remove the current one! Oops!

gerwitz commented 6 years ago

Hacked with ef8f9fd6995a63d947c146a6d099e366e82ea15e

paulrobertlloyd commented 6 years ago

Thanks for the quick fix. Quick question though… where can I find my store ID?

paulrobertlloyd commented 6 years ago

Oops, didn’t see the delete link, forgive my haste! However, in trying that, I got the following error:

{"error":"server_error","error_description":"Unexpected server error (Sequel::ForeignKeyConstraintViolation)."}
gerwitz commented 6 years ago

So much for that quick fix…stay tuned. :-(

gerwitz commented 6 years ago

Cowboy patch being promoted now, I'll leave this open until you confirm it's working for you.

paulrobertlloyd commented 6 years ago

Have been able to edit my config, will confirm everything works when I next post. Thanks for the fix!

paulrobertlloyd commented 5 years ago

Regarding this issue, can confirm that editing now works and I can post.