beberlei/AzureDistributionBundle — Issue #3: Sitesroot frontcrontoller uses hard coded approot path
Author: denderello
Created: 2012-03-08 12:02:17+00:00
State: open

The siteroots [frontcontroller](https://github.com/beberlei/AzureDistributionBundle/blob/master/Resources/role_template/index.php#L4) uses a hard coded path to the _approot_ folder right now.

As I discovered this path can change since Windows Azure switches the hard drive names (e.g. from E: to F:) when you update the configuration of a machine.

Right now I'm using the following code to overcome this issue:
```php
$appRoot = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..\approot\app';
´´´

But after talking to @beberlei about this, this might not be optimal since this path can change with new releases of Windows Azure.