mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 01:16:26 +02:00
Update descartes framework to improve env.php constants handling
This commit is contained in:
parent
cf4dd2f075
commit
6321899e02
7 changed files with 48 additions and 40 deletions
20
env.php.dist
20
env.php.dist
|
@ -2,23 +2,25 @@
|
|||
/*
|
||||
This file define constants and options for the app
|
||||
*/
|
||||
|
||||
$dir_path = '/raspisms';
|
||||
$http_pwd = $environment['HTTP_PROTOCOL'] . $dir_path . $environment['HTTP_SERVER_PORT'] . $environment['HTTP_DIR_PATH'];
|
||||
$env = [
|
||||
'ENV' => '%APP_ENV%', #env name (probably 'dev' or 'prod'), this value is used to get the env.XXX.php.dist matching env file
|
||||
'SESSION_NAME' => 'raspisms',
|
||||
'HTTP_DIR_PATH' => $dir_path, // Override default dir path
|
||||
|
||||
//RaspiSMS settings
|
||||
'WEBSITE_TITLE' => 'RaspiSMS',
|
||||
'WEBSITE_DESCRIPTION' => '',
|
||||
'WEBSITE_AUTHOR' => 'Raspberry Pi FR',
|
||||
'PWD_SCRIPTS' => PWD . '/scripts',
|
||||
'PWD_RECEIVEDS' => PWD . '/receiveds',
|
||||
'HTTP_PWD_SOUND' => HTTP_PWD_ASSETS . '/sounds',
|
||||
'PWD_ADAPTERS' => PWD . '/adapters',
|
||||
'PWD_DATA' => PWD . '/data',
|
||||
'HTTP_PWD_DATA' => HTTP_PWD . '/data',
|
||||
'PWD_DATA_PUBLIC' => PWD . '/data/public',
|
||||
'HTTP_PWD_DATA_PUBLIC' => HTTP_PWD . '/data/public',
|
||||
'PWD_SCRIPTS' => $environment['PWD'] . '/scripts',
|
||||
'PWD_RECEIVEDS' => $environment['PWD'] . '/receiveds',
|
||||
'HTTP_PWD_SOUND' => $http_pwd . '/assets' . '/sounds',
|
||||
'PWD_ADAPTERS' => $environment['PWD'] . '/adapters',
|
||||
'PWD_DATA' => $environment['PWD'] . '/data',
|
||||
'HTTP_PWD_DATA' => $http_pwd . '/data',
|
||||
'PWD_DATA_PUBLIC' => $environment['PWD'] . '/data/public',
|
||||
'HTTP_PWD_DATA_PUBLIC' => $http_pwd . '/data/public',
|
||||
'PWD_LOGS' => '/var/log/raspisms',
|
||||
'PWD_PID' => '/var/run/raspisms',
|
||||
'APP_SECRET' => '%APP_SECRET%',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue