From 989a86aeb57f18426082d00efe7b95ccb9c36025 Mon Sep 17 00:00:00 2001 From: flovntp Date: Tue, 10 Oct 2023 15:44:43 +0200 Subject: [PATCH] removing mention of .env file parsed (#3500) * removing mention of .env file parsed * Update sites/friday/src/get-started/express/add-database.md --------- Co-authored-by: AnouckColson <113913013+AnouckColson@users.noreply.github.com> --- sites/friday/src/get-started/express/_index.md | 4 ++-- sites/friday/src/get-started/express/add-database.md | 2 +- sites/friday/src/get-started/nextjs/_index.md | 4 ++-- sites/friday/src/get-started/strapi/_index.md | 4 ++-- .../layouts/shortcodes/get-started/environment-note.md | 1 + 5 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 themes/psh-docs/layouts/shortcodes/get-started/environment-note.md diff --git a/sites/friday/src/get-started/express/_index.md b/sites/friday/src/get-started/express/_index.md index 6246e0044f..fd132360ac 100644 --- a/sites/friday/src/get-started/express/_index.md +++ b/sites/friday/src/get-started/express/_index.md @@ -185,12 +185,12 @@ These YAML configuration files are located into a `.{{% vendor/cli %}}/` folder my-express-app ├── .{{% vendor/cli %}} │ └── config.yaml -├── .environment +├── [.environment] └── ``` {{< note >}} -An additional `.environment` file is located at the root of your source code, this file will override `.env` environment variables with {{% vendor/name %}} specific ones. +{{% get-started/environment-note %}} {{< /note >}} To pre-generate these YAML files, please use the following command from the root of your Express project and follow the prompts: diff --git a/sites/friday/src/get-started/express/add-database.md b/sites/friday/src/get-started/express/add-database.md index 257b330545..7306d21ae0 100644 --- a/sites/friday/src/get-started/express/add-database.md +++ b/sites/friday/src/get-started/express/add-database.md @@ -52,7 +52,7 @@ export DB_PASSWORD="$(echo $RELATIONSHIPS_JSON | jq -r '.mariadb[0].password')" ``` {{< note >}} -This additional `.environment` file is located at the root of your source code. During deployment of your {{% vendor/name %}} project, this file will override existing `.env` environment variables with {{% vendor/name %}} specific ones. +This additional `.environment` file is located at the root of your source code. This file contains {{% vendor/name %}} specific environment variables that will be used during the deployment of your project. {{< /note >}} Commit your change: diff --git a/sites/friday/src/get-started/nextjs/_index.md b/sites/friday/src/get-started/nextjs/_index.md index e4fc0d8144..bfe6cfeefe 100644 --- a/sites/friday/src/get-started/nextjs/_index.md +++ b/sites/friday/src/get-started/nextjs/_index.md @@ -171,12 +171,12 @@ These YAML configuration files are located into a `.{{% vendor/cli %}}/` folder my-nextjs-app ├── .{{% vendor/cli %}} │ └── config.yaml -├── .environment +├── [.environment] └── ``` {{< note >}} -An additional `.environment` file is located at the root of your source code, this file will override `.env` environment variables with {{% vendor/name %}} specific ones. +{{% get-started/environment-note %}} {{< /note >}} To pre-generate these YAML files, please use the following command from the root of your Next.js project and follow the prompts: diff --git a/sites/friday/src/get-started/strapi/_index.md b/sites/friday/src/get-started/strapi/_index.md index a6e549ac0d..9ed8a40251 100644 --- a/sites/friday/src/get-started/strapi/_index.md +++ b/sites/friday/src/get-started/strapi/_index.md @@ -162,12 +162,12 @@ These YAML configuration files are located inside a `.{{% vendor/cli %}}/` folde my-strapi-project ├── .{{% vendor/cli %}} │ └── config.yaml -├── .environment +├── [.environment] └── ``` {{< note >}} -An additional `.environment` file is located at the root of your source code, this file will override `.env` environment variables with {{% vendor/name %}} specific ones. +{{% get-started/environment-note %}} {{< /note >}} To pre-generate these YAML files, please use the following command from the root of your Strapi application and follow the prompts: diff --git a/themes/psh-docs/layouts/shortcodes/get-started/environment-note.md b/themes/psh-docs/layouts/shortcodes/get-started/environment-note.md new file mode 100644 index 0000000000..cea7149dbe --- /dev/null +++ b/themes/psh-docs/layouts/shortcodes/get-started/environment-note.md @@ -0,0 +1 @@ +An additional `.environment` file could be located at the root of your source code, this file would contain {{ .Site.Params.vendor.name }} specific environment variables.