diff --git a/Makefile b/Makefile index f7ed8ea43730144fc1e09268afd06279fcd94923..cc7203e39207343afcc059bcc442c00df4e8e923 100644 --- a/Makefile +++ b/Makefile @@ -17,3 +17,6 @@ test-unit: test-e2e: docker-compose -f docker/docker-compose.yml exec testcenter-frontend-dev ng e2e --webdriver-update=false --port 4202 + +init-config: + cp src/environments/environment.dev.ts environment.ts diff --git a/src/environments/environment.build.ts b/src/environments/environment.build.ts deleted file mode 100644 index 52e9d22d163bc4fc2c7fe7adda8652071d64e6a2..0000000000000000000000000000000000000000 --- a/src/environments/environment.build.ts +++ /dev/null @@ -1,8 +0,0 @@ -// ng build --configuration=build - -export const environment = { - production: false, - testcenterUrl: '/', - appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen', - apiVersionExpected: '4.0.0' -}; diff --git a/src/environments/environment.dev.ts b/src/environments/environment.dev.ts new file mode 100644 index 0000000000000000000000000000000000000000..e93c2dfb9f93a7632650dc4476ba0051ba47ba1e --- /dev/null +++ b/src/environments/environment.dev.ts @@ -0,0 +1,10 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false, + testcenterUrl: 'http://localhost:8000/', + appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen', + apiVersionExpected: '4.0.0' +}; diff --git a/src/environments/environment.ts b/src/environments/environment.ts deleted file mode 100644 index 65c7c5741adc8ab4086199474e1fe26b1db3daaa..0000000000000000000000000000000000000000 --- a/src/environments/environment.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file can be replaced during build by using the `fileReplacements` array. -// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`. -// The list of file replacements can be found in `angular.json`. - -export const environment = { - production: false, - // testcenterUrl: 'http://localhost/2020/testcenter-iqb-php-postgrestest/', - // testcenterUrl: 'https://ocba.iqb.hu-berlin.de/api/', - testcenterUrl: 'http://localhost/2020/testcenter-iqb-php/', - // testcenterUrl: 'https://www.iqb-testcenter.de/', - // testcenterUrl: 'http://localhost/api/', - appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen', - apiVersionExpected: '4.0.0' -}; - -/* - * In development mode, to ignore zone related error stack frames such as - * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can - * import the following file, but please comment it out in production mode - * because it will have performance impact when throw error - */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI.