Change urls

urls
Max Ehrlicher-Schmidt 4 years ago
parent ca11ae2263
commit 2695711711

@ -54,3 +54,9 @@ This Information has to be passed to the cell components dynamically which is on
</app-cell> </app-cell>
``` ```
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. 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.)

@ -3,7 +3,7 @@ module.exports = {
excludes: ['src/generated/*'], // ignore the generated files excludes: ['src/generated/*'], // ignore the generated files
service: { service: {
name: "flotte_project", name: "flotte_project",
url: "http://173.212.197.169:4000/graphql" url: "https://flotte.duckdns.org/graphqldev"
} }
} }
}; };

@ -1,6 +1,6 @@
overwrite: true overwrite: true
watch: true watch: true
schema: "http://173.212.197.169:4002/graphql" schema: "https://flotte.duckdns.org/graphqldev"
documents: "src/app/graphqlOperations/**/*.graphql" documents: "src/app/graphqlOperations/**/*.graphql"
generates: generates:
src/generated/graphql.ts: src/generated/graphql.ts:

@ -1,9 +1,8 @@
fragment PersonFields on Person { fragment PersonFields on Person {
id id
name name
firstName firstName
isLocked
isLocked
isLockedByMe isLockedByMe
lockedBy lockedBy
lockedUntil lockedUntil

@ -1,5 +1,5 @@
export const environment = { export const environment = {
production: true, production: true,
apiUrl: "http://173.212.197.169:4000", apiUrl: "https://flotte.duckdns.org/graphql", // graphql api url
authUrl: "http://173.212.197.169:8080" authUrl: "https://flotte.duckdns.org/user-management" // user server url
}; };

Loading…
Cancel
Save