From 26957117117f736bb2909055a7efc015bd516cc2 Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Wed, 25 Nov 2020 21:27:31 +0100 Subject: [PATCH] Change urls --- README.md | 6 ++++++ apollo.config.js | 2 +- codegen.yml | 2 +- src/app/graphqlOperations/fragments/person.graphql | 11 +++++------ src/environments/environment.prod.ts | 4 ++-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 364ecb9..eadd3e0 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,9 @@ This Information has to be passed to the cell components dynamically which is on ``` We can't pass it in an other form, else it would not be possible to pass a value, that is deeper in the data object than the first level (like insuranceData.billing), which is why the data has to be flattened to add it dynamically to a table or data-page. + +### Where to change the urls +If the backend url changes, it has to be changed in the following files: +- ./src/environments/ +- ./apollo.config.js for autocompletion when writing queries etc. +- ./codegen.yml for graphQL codegen (to generate schema, types etc.) \ No newline at end of file diff --git a/apollo.config.js b/apollo.config.js index 8cacc39..6b96e2c 100644 --- a/apollo.config.js +++ b/apollo.config.js @@ -3,7 +3,7 @@ module.exports = { excludes: ['src/generated/*'], // ignore the generated files service: { name: "flotte_project", - url: "http://173.212.197.169:4000/graphql" + url: "https://flotte.duckdns.org/graphqldev" } } }; \ No newline at end of file diff --git a/codegen.yml b/codegen.yml index 4c9fec3..43a3051 100644 --- a/codegen.yml +++ b/codegen.yml @@ -1,6 +1,6 @@ overwrite: true watch: true -schema: "http://173.212.197.169:4002/graphql" +schema: "https://flotte.duckdns.org/graphqldev" documents: "src/app/graphqlOperations/**/*.graphql" generates: src/generated/graphql.ts: diff --git a/src/app/graphqlOperations/fragments/person.graphql b/src/app/graphqlOperations/fragments/person.graphql index 4e07d1c..2675510 100644 --- a/src/app/graphqlOperations/fragments/person.graphql +++ b/src/app/graphqlOperations/fragments/person.graphql @@ -1,10 +1,9 @@ fragment PersonFields on Person { - id - name - firstName - - isLocked + id + name + firstName + isLocked isLockedByMe lockedBy lockedUntil -} \ No newline at end of file +} diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index b2749c6..204d624 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,5 +1,5 @@ export const environment = { production: true, - apiUrl: "http://173.212.197.169:4000", - authUrl: "http://173.212.197.169:8080" + apiUrl: "https://flotte.duckdns.org/graphql", // graphql api url + authUrl: "https://flotte.duckdns.org/user-management" // user server url };