All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
New Configuration for User Interface to support Runtime Configuration: In the User Interface, the "environment.*.ts" configuration files have been replaced with a new "config.*.yml" file. A migration script is provided which can migrate your UI configurations from the old format to the new one. More information can be found in the User Interface Configuration docs.
Code Block | ||
---|---|---|
| ||
yarn env:yaml [relative-path-to-environment.ts] [optional-relative-path-to-YAML] # For Exampleexample, tofrom migratethe an old environment.prod.ts file to the new config.prod.yml7.2 (or above) root directory, run this: # yarn env:yaml src/environmentsrelative/path/to/old/environment.prod.ts config/config.prod.yml |
...
dspace-7.2
) or branch.Install any updated local dependencies using Yarn in the "dspace-angular" source code directory:
Code Block |
---|
# change directory to our repo cd dspace-angular # install/update the local dependencies yarn install |
If upgrading to 7.2 or above, migrate your UI Configurations to YAML. In 7.2, the format of the UI configuration file changed from Typescript to YAML to support runtime configuration. This means that the older ./src/environment/environment.*.ts
configuration files have all been replaced by corresponding ./config/config.*.yml
configuration files (e.g. environment.prod.ts → config.prod.yml). You can either migrate your configurations manually, or use the provided "yarn env:yaml" migration script.
Code Block | ||
---|---|---|
| ||
yarn env:yaml [relative-path-to-environment.ts] [optional-relative-path-to-YAML] # For example, tofrom migratethe an old environment.prod.ts file to the new config.prod.yml:7.2 (or above) root directory, run this yarn env:yaml src/environmentsrelative/path/to/old/environment.prod.ts config/config.prod.yml # NOTE: Ityou'sll alsohave possible to justpoint run7.2 theat scriptyour with one input, and copy the output YAML to where you want it # yarn env:yaml src/environments/old environment.prod.ts to run this script. # Afterwards, the environment.prod.ts # (Then copy the output config.prod.yml overfile tocan your config/ folderbe deleted) |
For more information about the new configuration format, see the User Interface Configuration documentation.
Build the latest User Interface code for Production:
Code Block |
---|
yarn run build:prod |
If you are using PM2 as described in the Installing DSpace instructions, you'd stop it and then start it back up as follows
Code Block |
---|
pm2 stop dspace-angular.json pm2 start dspace-angular.json |
If you are using a different approach, you simply need to stop the running UI, and re-run:
Code Block |
---|
# First stop the running UI process by killing it (or similar) # Then restart the UI via this command: yarn run serve:ssr |
...