changeset 499:5b7a4327f6c0

Recommend using .env.local instead of copying .env.sample See https://cli.vuejs.org/guide/mode-and-env.html#local-only-variables.
author Tom Gottfried <tom@intevation.de>
date Fri, 24 Aug 2018 15:14:10 +0200
parents 6fbd5b83ae04
children f6d61657b487
files .hgignore client/.env client/.env.sample client/README.md
diffstat 4 files changed, 18 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Fri Aug 24 14:41:02 2018 +0200
+++ b/.hgignore	Fri Aug 24 15:14:10 2018 +0200
@@ -73,8 +73,8 @@
 # Yarn Integrity file
 .yarn-integrity
 
-# dotenv environment variables file
-.env
+# local dotenv environment variables file
+.env.local
 
 ### Vim ###
 # swap
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/.env	Fri Aug 24 15:14:10 2018 +0200
@@ -0,0 +1,12 @@
+#Name of the application, e.g. displayed at login time
+VUE_APP_TITLE=Waterway Monitoring system
+
+#Backend URL
+VUE_APP_API_URL=/api/
+VUE_BACKEND_API_URL=http://gemma_backend:8000
+
+#URL of secondary logo
+VUE_APP_SECONDARY_LOGO_URL=
+
+#Path of vendored images is copied during a webpack build
+VUE_APP_VENDOR_IMG_PATH=
--- a/client/.env.sample	Fri Aug 24 14:41:02 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-#Name of the application, e.g. displayed at login time
-VUE_APP_TITLE=Waterway Monitoring system
-
-#Backend URL
-VUE_APP_API_URL=/api/
-VUE_BACKEND_API_URL=http://backend.example.com:8088
-
-#URL of secondary logo
-VUE_APP_SECONDARY_LOGO_URL=
-
-#Path of vendored images is copied during a webpack build
-VUE_APP_VENDOR_IMG_PATH=
--- a/client/README.md	Fri Aug 24 14:41:02 2018 +0200
+++ b/client/README.md	Fri Aug 24 15:14:10 2018 +0200
@@ -7,14 +7,14 @@
 
     `yarn install`
 
-* Configuration via `.env`-file
-
-  **Example** given via `.env.sample`
+* Extend or overwrite configuration via `.env.local`-file
 
   ```
-  cp .env.sample .env
+  cp .env .env.local
   ````
 
+  Modify `.env.local` according to your needs.
+
 * Start Development servers
 
   * Javascript