indiekit icon indicating copy to clipboard operation
indiekit copied to clipboard

Multi-tenancy

Open gerwitz opened this issue 4 years ago • 8 comments

Do you have any plans or interest in supporting multiple sites on a single instance?

(If it's not obvious, I kinda want to retire sitewriter.net and replace it with indiekit before picking development back up again.)

gerwitz avatar Dec 28 '20 15:12 gerwitz

Ha, guess the shoe is on the other foot now! 😉

I did think about this earlier on, but decided to reduce the complexity to make the app easier to develop and more likely to ship. Not opposed to adding this in the future, however.

paulrobertlloyd avatar Dec 28 '20 16:12 paulrobertlloyd

I'd be very interested in this. I've been thinking I want to make my static site starter kit a first-class citizen for Indiekit down the line. Essentially, a public server of Indiekit runs that with a few changes someone using a static site can plug into.

Now what Micropub client to recommend with this package...

MaybeThisIsRu avatar Feb 10 '22 16:02 MaybeThisIsRu

Multi-tenancy is quite far off, and setting up a service to host multiple Micropub endpoints seems unlikely. But we’ll see, one step at a time!

paulrobertlloyd avatar Feb 11 '22 16:02 paulrobertlloyd

If/when it comes to adding multi-tenancy support, it would make sense to add support for mp-destination, too.

paulrobertlloyd avatar Dec 02 '22 21:12 paulrobertlloyd

Now I wonder if mp-destination would be a good way to designate "real" categories (since micropub categories are actually tags).

gerwitz avatar Dec 03 '22 10:12 gerwitz

Okay, I’ll bite… what’s the difference between categories and tags? What are you currently trying to achieve, and how would mp-destination help?

(I’ve been thinking a bit about multi-tenancy, but deferring development until after I’ve launched 1.0)

paulrobertlloyd avatar Dec 04 '22 14:12 paulrobertlloyd

I have a small number of categories like work, personal, and meta, which in some design iterations have been used for distinct feeds or index pages. This would map well to destinations.

Tags are, well, tags. Folksonomy-style. I have at least dozens of them and only use them to inform search and "posts like this" pivots.

(Even the Micropub documentation refers to categories as tags. This field has always been mis-named.)

gerwitz avatar Dec 07 '22 16:12 gerwitz

Possibly in the realm of ‘giant hack’, but it’s now possible to add separate tags and categories (or any other type of token array) to posts thanks to the recent APIs added for customising post types.

Take a look at https://github.com/paulrobertlloyd/paulrobertlloyd-indiekit/commit/287625010e839c2736922260ca7a9b852d6e4af7 for how I’m currently handling this for my own website. I’m sure there could be a smarter way to enable this sort of customisation, but this has at least moved from ‘impossible’, to ‘possible, with some effort’.

paulrobertlloyd avatar Apr 10 '24 23:04 paulrobertlloyd