I have set up a test environment in start.php:
$env = $app->detectEnvironment(array(
    'local' => array('http://localhost*', '*.dev'),
));
Now I want to define a different public path for local environment
production: 'public' => DIR.'/../../../www/',
local: 'public' => DIR.'/../../../www/local',
but the paths.php locates in bootstrap folder instead of app, so how can I set up a different public path?
you have access to the $env variable in your paths.php (since it just gets included from start.php). so you can build in a switch:    
'public' => ($env == 'local') ? __DIR__.'/../public' : __DIR__ . '/some/where/else/public',
works for me in production.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With