On my local dev sever, as well as the production server, the craft
folder is one level above web root, so $craftPath
in index.php
is set like so:
$craftPath = '../craft';
On the staging server, the craft
folder is two levels above web root, so $craftPath
needs to be:
$craftPath = '../../craft';
Can this be accomplished in a single index.php file? Something similar to the multi-environment array in config/general.php
and config/db.php
perhaps?