All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
dspace-7.0-beta5
) or branch.Install all necessary local dependencies by running the following from within the unzipped "dspace-angular" directory
Code Block |
---|
# change directory to our repo cd dspace-angular # install the local dependencies yarn install |
Create a Production Configuration file at [dspace-angular]/src/environment/environment.prod.ts
. You may wish to use the environment.template.ts
as a starting point. This environment.prod.ts
file can be used to override any of the default configurations specified in the environment.common.ts (in that same directory). At a minimum this file MUST include the "ui" and "rest" sections similar to the following (keep in mind, you only need to include settings that you need to modify):
Code Block |
---|
export const environment = { // This example is valid if your Backend is publicly available at https://api.mydspace.edu/server/ // It should be kept in sync with the value of "dspace.server.url" in the backend's local.cfg rest: { ssl: true, host: 'api.mydspace.edu', port: 80, // NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript nameSpace: '/server' } // This example is valid if your UI will be running at https://mydspace.edu/ // It should be kept in sync with the value of "dspace.ui.url" in the backend local.cfg ui: { ssl: true, host: 'mydspace.edu', port: 4000, // NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript nameSpace: '/' } }; |
environment.common.ts
configuration file you can also copy them into this same file.Start the application
Code Block |
---|
# build and start the application yarn start |
...