File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ APP_ID = app
2
+ APP_NAME = Application
3
+ APP_LANGUAGE = uk-UA
4
+
1
5
DB_DRIVER = mysql
2
6
DB_HOST = localhost
3
7
DB_NAME = dbname
4
8
DB_USER = user
5
9
DB_PASS = password
10
+
6
11
YII_DEBUG = true
7
12
YII_ENV = dev
8
13
YII_MAIL_USE_FILE_TRANSPORT = true
Original file line number Diff line number Diff line change 6
6
$ bootstrap = require (__DIR__ . '/bootstrap.php ' );
7
7
8
8
return [
9
- 'id ' => 'console-app ' ,
9
+ 'id ' => getenv ('APP_ID ' ) ? getenv ('APP_ID ' ) . '-cli ' : 'app-cli ' ,
10
+ 'name ' => getenv ('APP_NAME ' ) ? getenv ('APP_NAME ' ) . '-CLI ' : 'ApplicationCLI ' ,
11
+ 'language ' => getenv ('APP_LANGUAGE ' ),
10
12
'basePath ' => dirname (__DIR__ ),
11
13
'vendorPath ' => dirname (dirname (__DIR__ )) . '/vendor ' ,
12
14
'runtimePath ' => dirname (dirname (__DIR__ )) . '/runtime ' ,
Original file line number Diff line number Diff line change 6
6
$ bootstrap = require (__DIR__ . '/bootstrap.php ' );
7
7
8
8
$ config = [
9
- 'id ' => 'app ' ,
10
- 'name ' => 'Application ' ,
9
+ 'id ' => getenv ('APP_ID ' ) ? getenv ('APP_ID ' ) : 'app ' ,
10
+ 'name ' => getenv ('APP_NAME ' ) ? getenv ('APP_NAME ' ) : 'Application ' ,
11
+ 'language ' => getenv ('APP_LANGUAGE ' ),
11
12
'basePath ' => dirname (__DIR__ ),
12
13
'vendorPath ' => dirname (dirname (__DIR__ )) . '/vendor ' ,
13
14
'runtimePath ' => dirname (dirname (__DIR__ )) . '/runtime ' ,
You can’t perform that action at this time.
0 commit comments