Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-workflow
Commits
53aa7e95
Commit
53aa7e95
authored
1 year ago
by
Tushar
Browse files
Options
Download
Patches
Plain Diff
Refactor .env and enketo express
parent
e6a13dde
main
dev
feat/centro
feature/formlistapi
revert-67-contributeByGitpod
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.env
+4
-3
.env
.gitpod.yml
+2
-0
.gitpod.yml
apps/wrapper/src/workflow_first.json
+2
-2
apps/wrapper/src/workflow_first.json
docker-compose.yml
+4
-1
docker-compose.yml
packages/form-manager/src/forms/test_form.xml
+699
-1
packages/form-manager/src/forms/test_form.xml
with
711 additions
and
7 deletions
+711
-7
.env
+
4
−
3
View file @
53aa7e95
...
...
@@ -17,6 +17,7 @@ CENTRAL_USER_PASS=StrongPassword@1234
#enketo-express
ENCRYPTION_KEY=somestrongencrytionkey
LESS_SECURE_ENCRYPTION_KEY=ssssomestrongencrytionkey
FORM_MANAGER_BASE_URI=IP:PORT_OF_DEPLOYED_INSTANCE
# form manager
FORM_MANAGER_URL=http://form-manager:3006
...
...
@@ -40,6 +41,6 @@ HASURA_GRAPHQL_DATABASE_URL=postgres://$TSDB_POSTGRES_USER:$TSDB_POSTGRES_PASSWO
# http://service-name is not going to work as we are building a static build
# and serving it through nginx
# use actual IP address instead
REACT_APP_ENKETO_URL=http://enketo-express:8065
REACT_APP_FORM_MANAGER_URL=http://form-manager:3006
REACT_APP_HASURA_URL=http://gql:8080
\ No newline at end of file
REACT_APP_ENKETO_URL=https://8065-tushar5526-workflow-0qffaj3egws.ws-us93.gitpod.io
REACT_APP_FORM_MANAGER_URL=https://3006-tushar5526-workflow-0qffaj3egws.ws-us93.gitpod.io
REACT_APP_HASURA_URL=https://8080-tushar5526-workflow-0qffaj3egws.ws-us93.gitpod.io
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitpod.yml
+
2
−
0
View file @
53aa7e95
...
...
@@ -28,6 +28,8 @@ tasks:
sed -i~ "/^REACT_APP_ENKETO_URL=/s/=.*/=https\:\/\/8065-${GITPOD_WORKSPACE_URL:8}/" .env
sed -i~ "/^REACT_APP_FORM_MANAGER_URL=/s/=.*/=https\:\/\/3006-${GITPOD_WORKSPACE_URL:8}/" .env
sed -i~ "/^REACT_APP_HASURA_URL=/s/=.*/=https\:\/\/8080-${GITPOD_WORKSPACE_URL:8}/" .env
# for enketo-express
sed -i~ "/^FORM_MANAGER_BASE_URI=/s/=.*/=https\:\/\/3006-${GITPOD_WORKSPACE_URL:8}/" .env
docker-compose up -d
gp sync-done setup
...
...
This diff is collapsed.
Click to expand it.
apps/wrapper/src/workflow_first.json
+
2
−
2
View file @
53aa7e95
{
"forms"
:
{
"
jumping
_form
_1
"
:
{
"
test
_form"
:
{
"skipOnSuccessMessage"
:
true
,
"prefill"
:
{},
"submissionURL"
:
""
,
...
...
@@ -49,6 +49,6 @@
}
}
},
"startingForm"
:
"
jumping
_form
_1
"
,
"startingForm"
:
"
test
_form"
,
"metaData"
:
{}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
4
−
1
View file @
53aa7e95
...
...
@@ -166,7 +166,7 @@ services:
REDIS_MAIN_PORT
:
6379
REDIS_CACHE_HOST
:
redis_cache
REDIS_CACHE_PORT
:
6379
FORM_MANAGER_BASE_URI
:
${FORM_MANAGER_UR
L
}
FORM_MANAGER_BASE_URI
:
${FORM_MANAGER_
BASE_
UR
I
}
fm-cache
:
image
:
redis:7
...
...
@@ -192,6 +192,9 @@ services:
MINIO_BUCKETNAME
:
${MINIO_BUCKETNAME}
REDIS_HOST
:
${REDIS_HOST}
REDIS_PORT
:
${REDIS_PORT}
FORM_MANAGER_URL
:
${http://form-manager:3006}
MINIO_USE_SSL
:
${MINIO_USE_SSL}
wrapper
:
image
:
wrapper
...
...
This diff is collapsed.
Click to expand it.
packages/form-manager/src/forms/test_form.xml
+
699
−
1
View file @
53aa7e95
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets