@@ -31,19 +31,20 @@ This variable can now be used in your `/system/user/config.php` as illustrated b
3131Here is an example of what it might look like to manage all your database connection settings, and Base URL in ` .env.php `
3232
3333```
34- // .env.php
35-
36- // URLs
34+ # .env.php
35+ # URLs
3736BASE_URL=http://mysite.test/
3837
39- // DATABASE SETTINGS
38+ # DATABASE SETTINGS
4039DB_HOSTNAME=db
4140DB_DATABASE=db
4241DB_USERNAME=db
4342DB_PASSWORD=db
4443DB_PORT=3306
4544```
4645
46+ NOTE: You must use ` # ` for comments within ` .env.php ` . Using ` // ` will result in your ` .env.php ` being unable to be read.
47+
4748```
4849// system/user/config.php
4950<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
@@ -53,7 +54,7 @@ $config['save_tmpl_files'] = 'y';
5354$config['base_url'] = $_ENV['BASE_URL'];
5455$config['site_url'] = $config['base_url'];
5556
56- $config['app_version'] = '7.2.0 ';
57+ $config['app_version'] = '7.5.8 ';
5758$config['encryption_key'] = 'bb748b72de235352315122d00';
5859$config['session_crypt_key'] = '985796e4444444563463e2c80242';
5960
@@ -83,15 +84,15 @@ The site short name can be accessed in the code using `$GLOBALS['assign_to_confi
8384The below example demonstrates this approach, assuming you have 2 MSM sites with short names of ` default_site ` and ` second_site `
8485
8586```
86- // .env.php
87- // SITE-SPECIFIC SETTINGS
87+ # .env.php
88+ # SITE-SPECIFIC SETTINGS
8889default_site.BASE_PATH=/home/sites/mysite.test/
8990default_site.BASE_URL=http://mysite.test/
9091
9192second_site.BASE_PATH=/home/sites/anothersite.test/
9293second_site.BASE_URL=http://anothersite.test/
9394
94- // DATABASE SETTINGS
95+ # DATABASE SETTINGS
9596DB_HOSTNAME=db
9697DB_DATABASE=db
9798DB_USERNAME=db
@@ -110,7 +111,7 @@ $config['base_url'] = $_ENV[$GLOBALS['assign_to_config']['site_name'] . '.' . 'B
110111
111112$config['site_url'] = $config['base_url'];
112113
113- $config['app_version'] = '7.2.0 ';
114+ $config['app_version'] = '7.5.8 ';
114115$config['encryption_key'] = 'bb748b72de235352315122d00';
115116$config['session_crypt_key'] = '985796e4444444563463e2c80242';
116117
0 commit comments