mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Remove comment about dotenv files not being read in production.
This commit is contained in:
parent
34074ac247
commit
b62417a3e1
@ -74,10 +74,8 @@ needs with empty or dummy data. In each environment, you can then copy the file
|
||||
appropriate data.
|
||||
|
||||
When your application runs, this file will be automatically loaded and the variables will be put into
|
||||
the environment. This will work in any environment except for production, where the variables should be
|
||||
set in the environment through whatever means your getServer supports, such as .htaccess files, etc. These
|
||||
variables are then available through ``getenv()``, ``$_SERVER``, and ``$_ENV``. Of the three, ``getenv()`` function
|
||||
is recommended since it is not case-sensitive::
|
||||
the environment. This will work in any environment. These variables are then available through ``getenv()``,
|
||||
``$_SERVER``, and ``$_ENV``. Of the three, ``getenv()`` function is recommended since it is not case-sensitive::
|
||||
|
||||
$s3_bucket = getenv('S3_BUCKET');
|
||||
$s3_bucket = $_ENV['S3_BUCKET'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user