From 944e31819be63d0b625ff381d15428594e1b759a Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Tue, 31 Jan 2017 15:36:36 -0800 Subject: [PATCH] .env is created automatically now --- en/directory-structure.md | 4 ++++ en/installation.md | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/en/directory-structure.md b/en/directory-structure.md index c0694af..00f54cf 100644 --- a/en/directory-structure.md +++ b/en/directory-structure.md @@ -40,6 +40,10 @@ This is where all of your Composer dependencies go, including Craft itself, and This directory represents your web root. +#### `.env` + +This is your [PHP dotenv](https://github.com/vlucas/phpdotenv) `.env` configuration file. It defines sensitive or environment-specific config values that don’t make sense to commit to version control. + #### `.env.example` This is your [PHP dotenv](https://github.com/vlucas/phpdotenv) `.env` file template. It should be used as a starting point for any actual `.env` files, stored alongside it but out of version control on each of the environments your Craft project is running in. diff --git a/en/installation.md b/en/installation.md index fbdfc9f..820d83e 100644 --- a/en/installation.md +++ b/en/installation.md @@ -52,6 +52,7 @@ storage/ templates/ vendor/... web/... +.env .env.example composer.json craft @@ -75,7 +76,7 @@ If you’re given a choice, we recommend the following database settings in most - **PostgreSQL** - Character Set: `UTF8` -Once the database is created, you’ll need to configure Craft with its connection settings. Copy the `.env.example` file at the root of your Craft project to a new `.env` file, and fill in your database connection settings within it. +Once the database is created, you’ll need to configure Craft with its connection settings. Open the `.env` file at the root of your Craft project and fill in your database connection settings. > {tip} That `.env` file will be processed via [PHP dotenv], which the `craftcms/craft` project comes with preinstalled. The advantage of using PHP dotenv is that it offers a place to store sensitive information (like database connection settings) in a file that doesn’t get committed to your Git repository.