In order to allow a more fine grained control over each binary runtime we need to be able to define '.env' files relative to the file name. Therefore the AppRun will search first for the env file at '.env' and as fallback we will look for the '.env' file.
Having .env files relative to the AppRun allows also to have multiple AppRun in the same bundle. Therefore is required to find a better way of defining the APPDIR variable. As a solution we will introduce a new variable "ORIGIN" which will contain the AppRun path and that can be used in the .env file to define the AppDir root relative to the AppRun location. This also allows to combine multiple AppDir in a single bundle.
In order to allow a more fine grained control over each binary runtime we need to be able to define '.env' files relative to the file name. Therefore the AppRun will search first for the env file at '.env' and as fallback we will look for the '.env' file.
Having .env files relative to the AppRun allows also to have multiple AppRun in the same bundle. Therefore is required to find a better way of defining the APPDIR variable. As a solution we will introduce a new variable "ORIGIN" which will contain the AppRun path and that can be used in the .env file to define the AppDir root relative to the AppRun location. This also allows to combine multiple AppDir in a single bundle.