This is my first multi locale Craft setup and everything is cool on my local/dev environment. However running into difficulty on the production server (Digital Ocean/ServerPilot). My default (EN) version plays nice but my German locale returns a 500 when isSystemOn => 'true'. When set to false it displays the appropriate 'Unavailable' (503) template. So it looks like everything is setup fine as far as Digital Ocean, ServerPilot, domain, etc... so I'm wondering if there's something amiss in my config?
I have 2 "apps" setup in ServerPilot for my default (EN) and German sites. My German app contains a public folder with an index.php that contains the server path:
$craftPath = '../../sitenamecom/craft';
I've also tried a full server path but the above seems to work fine anyway.
Then in my config/general.php I've got all the usual stuff, plus:
// production (DE) 'sitename.de' => array( 'backupDbOnUpdate' => true, 'devMode' => false, 'environmentVariables' => array( 'baseUrl' => 'https://sitename.de', 'basePath' => realpath(dirname(__FILE__)) . '/../../public', ), 'isSystemOn' => false, 'siteUrl' => 'https://sitename.de/', ),
So as I say, everything working fine on my local server but with isSystemOn set to true on production I get an Internal Server Error. Anyone got any suggestions on how best to debug this?