# HG changeset patch # User Tom Gottfried # Date 1535116450 -7200 # Node ID 5b7a4327f6c0b88393540918f5ce02e6044873a9 # Parent 6fbd5b83ae04dfc87620d930fe8fc02f1ec9d50d Recommend using .env.local instead of copying .env.sample See https://cli.vuejs.org/guide/mode-and-env.html#local-only-variables. diff -r 6fbd5b83ae04 -r 5b7a4327f6c0 .hgignore --- 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 diff -r 6fbd5b83ae04 -r 5b7a4327f6c0 client/.env --- /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= diff -r 6fbd5b83ae04 -r 5b7a4327f6c0 client/.env.sample --- 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= diff -r 6fbd5b83ae04 -r 5b7a4327f6c0 client/README.md --- 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