feat(ci): add CI environment configuration and replace URL
This commit is contained in:
parent
aceb2e953c
commit
17f20461f8
4 changed files with 18 additions and 1 deletions
|
@ -52,6 +52,14 @@
|
|||
"optimization": false,
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true
|
||||
},
|
||||
"pipeline": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/app/environments/environment.ts",
|
||||
"with": "src/app/environments/environment.ci.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
|
|
4
src/app/environments/environment.ci.ts
Normal file
4
src/app/environments/environment.ci.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
export class Environment {
|
||||
public static readonly BASE_URL = "http://employee:8089";
|
||||
}
|
4
src/app/environments/environment.ts
Normal file
4
src/app/environments/environment.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
export class Environment {
|
||||
public static readonly BASE_URL = "http://localhost:8089";
|
||||
}
|
|
@ -4,6 +4,7 @@ import { EmployeesForAQualificationDTO, QualificationGetDTO, QualificationPostDT
|
|||
import { Observable } from "rxjs";
|
||||
import { EmployeeNameDataDTO } from "../models/mitarbeiter";
|
||||
import { EmployeeService } from "./employee.service";
|
||||
import { Environment } from "../environments/environment";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
|
@ -19,7 +20,7 @@ export class SkillService {
|
|||
this.http.delete(`${SkillService.BASE_URL}/qualifications/${id}`).subscribe();
|
||||
}
|
||||
|
||||
public static readonly BASE_URL = "http://employee:8089";
|
||||
public static readonly BASE_URL = Environment.BASE_URL;
|
||||
|
||||
getToPutDto(skill: QualificationGetDTO): QualificationPostDTO {
|
||||
return {
|
||||
|
|
Loading…
Add table
Reference in a new issue