Skip to content

Commit a7fee25

Browse files
committed
Support deployments to URL subfolders
1 parent 7788142 commit a7fee25

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

INSTALL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ If you want to override the default `generated.yaml` you can mount this file whe
2323
**NB!** Note that the docker command requires an absolute path to the local file. (Hence, the use of the `$PWD` variable. On Windows, substitute `$PWD` with `%CD%`.)
2424

2525

26-
2726
## Amazon EC2 Instance
2827

2928
1. In the _EC2_ sidenav select _Instances_ and click _Launch Instance_
@@ -57,6 +56,9 @@ ng build
5756
```
5857
The files that were created in the subfolder `dist`
5958

59+
If your DSOMM application is having a subfolder in the URL (e.g. https://server.local/our-dsomm), you need to build the Angular application to prepare for this. In that case build the application by using `ng build --base-href /our-dsomm/`.
60+
61+
6062
## Teams and Groups
6163
To customize these teams, you can create your own [meta.yaml](src/assets/meta.yaml) file with your unique team definitions.
6264

src/app/service/loader/data-loader.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class DataValidationError extends Error {
1414

1515
@Injectable({ providedIn: 'root' })
1616
export class LoaderService {
17-
private META_FILE: string = '/assets/YAML/meta.yaml';
17+
private META_FILE: string = 'assets/YAML/meta.yaml';
1818
private debug: boolean = false;
1919
private dataStore: DataStore | null = null;
2020

src/app/service/yaml-loader/yaml-loader.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class YamlService {
178178
}
179179

180180
public makeFullPath(relativePath: string, relativeTo: string) {
181-
let fullPath = new URL(relativePath, 'https://example.org/.' + relativeTo).pathname;
181+
let fullPath = new URL(relativePath, 'https://example.org/' + relativeTo).pathname?.slice(1);
182182

183183
// Make sure the new path does not escape its cage
184184
let i = relativeTo.lastIndexOf('/');

0 commit comments

Comments
 (0)