Skip to content

Commit 53aa7e9

Browse files
committed
Refactor .env and enketo express
1 parent e6a13dd commit 53aa7e9

File tree

5 files changed

+711
-7
lines changed

5 files changed

+711
-7
lines changed

.env

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ CENTRAL_USER_PASS=StrongPassword@1234
1717
#enketo-express
1818
ENCRYPTION_KEY=somestrongencrytionkey
1919
LESS_SECURE_ENCRYPTION_KEY=ssssomestrongencrytionkey
20+
FORM_MANAGER_BASE_URI=IP:PORT_OF_DEPLOYED_INSTANCE
2021

2122
# form manager
2223
FORM_MANAGER_URL=http://form-manager:3006
@@ -40,6 +41,6 @@ HASURA_GRAPHQL_DATABASE_URL=postgres://$TSDB_POSTGRES_USER:$TSDB_POSTGRES_PASSWO
4041
# http://service-name is not going to work as we are building a static build
4142
# and serving it through nginx
4243
# use actual IP address instead
43-
REACT_APP_ENKETO_URL=http://enketo-express:8065
44-
REACT_APP_FORM_MANAGER_URL=http://form-manager:3006
45-
REACT_APP_HASURA_URL=http://gql:8080
44+
REACT_APP_ENKETO_URL=https://8065-tushar5526-workflow-0qffaj3egws.ws-us93.gitpod.io
45+
REACT_APP_FORM_MANAGER_URL=https://3006-tushar5526-workflow-0qffaj3egws.ws-us93.gitpod.io
46+
REACT_APP_HASURA_URL=https://8080-tushar5526-workflow-0qffaj3egws.ws-us93.gitpod.io

.gitpod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ tasks:
2828
sed -i~ "/^REACT_APP_ENKETO_URL=/s/=.*/=https\:\/\/8065-${GITPOD_WORKSPACE_URL:8}/" .env
2929
sed -i~ "/^REACT_APP_FORM_MANAGER_URL=/s/=.*/=https\:\/\/3006-${GITPOD_WORKSPACE_URL:8}/" .env
3030
sed -i~ "/^REACT_APP_HASURA_URL=/s/=.*/=https\:\/\/8080-${GITPOD_WORKSPACE_URL:8}/" .env
31+
# for enketo-express
32+
sed -i~ "/^FORM_MANAGER_BASE_URI=/s/=.*/=https\:\/\/3006-${GITPOD_WORKSPACE_URL:8}/" .env
3133
3234
docker-compose up -d
3335
gp sync-done setup

apps/wrapper/src/workflow_first.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"forms": {
3-
"jumping_form_1": {
3+
"test_form": {
44
"skipOnSuccessMessage": true,
55
"prefill": {},
66
"submissionURL": "",
@@ -49,6 +49,6 @@
4949
}
5050
}
5151
},
52-
"startingForm": "jumping_form_1",
52+
"startingForm": "test_form",
5353
"metaData": {}
5454
}

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ services:
166166
REDIS_MAIN_PORT: 6379
167167
REDIS_CACHE_HOST: redis_cache
168168
REDIS_CACHE_PORT: 6379
169-
FORM_MANAGER_BASE_URI: ${FORM_MANAGER_URL}
169+
FORM_MANAGER_BASE_URI: ${FORM_MANAGER_BASE_URI}
170170

171171
fm-cache:
172172
image: redis:7
@@ -192,6 +192,9 @@ services:
192192
MINIO_BUCKETNAME: ${MINIO_BUCKETNAME}
193193
REDIS_HOST: ${REDIS_HOST}
194194
REDIS_PORT: ${REDIS_PORT}
195+
FORM_MANAGER_URL: ${http://form-manager:3006}
196+
MINIO_USE_SSL: ${MINIO_USE_SSL}
197+
195198

196199
wrapper:
197200
image: wrapper

0 commit comments

Comments
 (0)