Skip to content

Commit ea0659d

Browse files
author
Florian Treml
committed
Load .env file from internal file
1 parent 6fa4343 commit ea0659d

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ Clone or download this repository and start with docker-compose:
4444

4545
> docker-compose up -d
4646

47-
This will download the prebuilt images from Dockerhub.
47+
This will download the latest released prebuilt images from Dockerhub. To download the latest developer images from Dockerhub:
4848

49-
Point your browser to http://127.0.0.1 to open the [Swagger UI](https://swagger.io/tools/swagger-ui/) and browse/use the API definition.
49+
> docker-compose --env-file .env.develop up
5050

51+
Point your browser to http://127.0.0.1 to open the [Swagger UI](https://swagger.io/tools/swagger-ui/) and browse/use the API definition.
5152

5253
### Optional: Build Docker Images
5354

frontend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ WORKDIR /app
77
COPY ./package.json /app/package.json
88
RUN npm install --no-optional --production
99
COPY . /app
10+
COPY ./resources/.env /app/.env
1011
RUN find . -type f ! -path '*/node_modules/*' -print0 | xargs -0 dos2unix
1112

1213
VOLUME /app/resources

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"eslint": "eslint src",
77
"eslint-fix": "eslint --fix src",
8-
"start": "cross-env DOTENV_FLOW_PATH=./resources nodemon -w ./resources/.env -w ./resources/.env.local -w ./src/ -x \"node -r dotenv-flow/config\" ./src/server.js",
9-
"start-dist": "cross-env DOTENV_FLOW_PATH=./resources node -r dotenv-flow/config ./src/server.js",
8+
"start-dev": "cross-env DOTENV_FLOW_PATH=./resources nodemon -w ./resources/.env -w ./resources/.env.local -w ./src/ -x \"node -r dotenv-flow/config\" ./src/server.js",
9+
"start-dist": "node -r dotenv-flow/config ./src/server.js",
1010
"jsdoc": "swagger-jsdoc -d ./src/swaggerDef.json -o ./src/swagger.json src/routes.js"
1111
},
1212
"author": "Botium GmbH",

frontend/resources/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ BOTIUM_SPEECH_KALDI_URL_DE=http://stt_de:80/client/dynamic/recognize
3333
#BOTIUM_SPEECH_GOOGLE_KEYFILE=./resources/google.json
3434
#BOTIUM_SPEECH_GOOGLE_CLIENT_EMAIL=
3535
#BOTIUM_SPEECH_GOOGLE_PRIVATE_KEY=
36-
BOTIUM_SPEECH_GOOGLE_CONFIG={}
36+
#BOTIUM_SPEECH_GOOGLE_CONFIG={}
3737
# For files longer than 1 minute, you have to create a Google Cloud Storage Bucket as temporary storage (give read/write access to service user)
3838
#BOTIUM_SPEECH_GOOGLE_BUCKET_NAME=
3939
#BOTIUM_SPEECH_GOOGLE_API_VERSION=

0 commit comments

Comments
 (0)