added npm-run-all

This commit is contained in:
lotte
2020-03-27 11:02:07 +01:00
parent a3b97f7bd9
commit 1caec64115
3 changed files with 86 additions and 3 deletions

View File

@@ -90,6 +90,29 @@ To use the configuration parameters in your component:
import { environment } from '../environment.ts';
```
This file is generated by the script located in `scripts/set-env.ts`.
The server settings can be overwritten using an environment file.
This file should be called `.env` and be placed in the project root.
The following settings can be overwritten in this file:
```
DSPACE_HOST // The host name of the angular application
DSPACE_PORT // The port number of the angular application
DSPACE_NAMESPACE // The namespace of the angular application
DSPACE_SSL // Whether the angular application uses SSL [true/false]
DSPACE_REST_HOST // The host name of the REST application
DSPACE_REST_PORT // The port number of the REST application
DSPACE_REST_NAMESPACE // The namespace of the REST application
DSPACE_REST_SSL // Whether the angular REST uses SSL [true/false]
```
The same settings can also be overwritten by setting system environment variables instead, E.g.:
```export DSPACE_HOST=https://dspace7.4science.cloud/server```
Running the app
---------------