For sanity’s sake, I’m trying to implement my kirby site with an (internal only) “staging” part and a public website, which I started on plainkit, 3.2.2 and meanwhile upgraded to 3.2.3. My path is based on what I’ve read here, primarily: https://getkirby.com/docs/cookbook/setup/multisite
I have added two directories to which index.php points to fl-staging or fl-prod respectively:
<?php require 'kirby/bootstrap.php'; $sites = [ 'example.com' => __DIR__ . '/fl-prod', 'www.example.com' => __DIR__ . '/fl-prod', 'staging.example.com' => __DIR__ . '/fl-staging', ]; $url = Url::host(); $root = $sites[$url]; $kirby = new Kirby([ 'roots' => [ 'index' => __DIR__, 'site' => $root . '/site', 'assets' => $root . '/assets', 'content' => $root . '/content', 'media' => $root . '/media', 'accounts' => __DIR__. '/fl-all/site/accounts', ] ]);
The directory structure is as follows
+ fl-all/ + site/ + accounts/ + fl-prod + assets/ + content/ + media/ + site/ + blueprints/ + cache/ + config/ + sessions/ + snippets/ + templates/ - index.php + kirby/
$kirby->roots()->media() is fl-staging/media` for example.
To me it looks somewhat similar to the effects here: Panel breaks on multi-site setup with per-site accounts
As a side note: I have some issues with the images in the panel, both icons as well as for example user profile images keep breaking in the panel, but work when running the site itself. Don’t know whether that points to some related issue – I have beforehand suspected that I have made an error in one of the blueprints.
Any thoughts on that?