Hi,
I changed my kirby folder structure and now my images are not automatically generated into the media folder anymore. I moved the content and media up one level. I changed some stuff in the index.php and config.php, but it didn’t help. I read the guide on multisite setup, but couldnt figure out the problem.
Thank you!
live/site/config/config.php
<?php
return [
'debug' => true,
'panel' => [
'install' => true
],
'scssNestedCheck' => true,
'content' => dirname(__DIR__, 1) . '/content',
'media' => dirname(__DIR__, 1) . '/media',
];
live/index.php
<?php
require 'kirby/bootstrap.php';
$host = Url::host();
$url = 'https://' . $host;
$base = dirname(__DIR__);
//$parentDir = dirname(__DIR__, 1);
$liveDir = $base . '/live';
$kirby = new Kirby([
'roots' => [
'content' => $base . '/content',
'media' => $base . '/media',
'index' => $liveDir,
'base' => $liveDir,
'site' => $liveDir . '/site',
'storage' => $storage = $base . '/storage',
'accounts' => $storage . '/accounts',
'cache' => $storage . '/cache',
'sessions' => $storage . '/sessions',
],
'urls' => [
'media' => $url . '/media',
'assets' => $url . '/live/assets',
]
]);
echo $kirby->render();