You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+114-83
Original file line number
Diff line number
Diff line change
@@ -91,13 +91,15 @@ To change the default configuration values, create local files that override the
91
91
To use the configuration parameters in your component:
92
92
93
93
```bash
94
-
import { GlobalConfig } from "../config";
94
+
import { GLOBAL_CONFIG, GlobalConfig } from '../config';
95
+
96
+
constructor(@Inject(GLOBAL_CONFIG) public config: GlobalConfig) {}
95
97
```
96
98
97
99
Running the app
98
100
---------------
99
101
100
-
After you have installed all dependencies you can now run the app. Run `yarn run watch:dev` to start a local server which will watch for changes, rebuild the code, and reload the server for you. You can visit it at `http://localhost:3000`.
102
+
After you have installed all dependencies you can now run the app. Run `yarn run watch` to start a local server which will watch for changes, rebuild the code, and reload the server for you. You can visit it at `http://localhost:3000`.
101
103
102
104
Running in production mode
103
105
--------------------------
@@ -113,7 +115,7 @@ yarn start
113
115
If you only want to build for production, without starting, run:
114
116
115
117
```bash
116
-
yarn run build:prod:ngc:json
118
+
yarn run build:prod
117
119
```
118
120
119
121
This will build the application and put the result in the `dist` folder
@@ -155,7 +157,7 @@ If you are going to use a remote test enviroment you need to edit the './protrac
155
157
156
158
The default browser is Google Chrome.
157
159
158
-
Protractor needs a functional instance of the DSpace interface to run the E2E tests, so you need to run:`yarn run watch:dev`
160
+
Protractor needs a functional instance of the DSpace interface to run the E2E tests, so you need to run:`yarn run watch`
159
161
160
162
or any command that bring up the DSpace interface.
161
163
@@ -171,6 +173,17 @@ To run all the tests (e.g.: to run tests with Continuous Integration software) y
171
173
172
174
Run:`yarn run docs` to produce the documentation that will be available in the 'doc' folder.
173
175
176
+
Deploy
177
+
------
178
+
179
+
```bash
180
+
# deploy production in standalone pm2 container
181
+
yarn run deploy
182
+
183
+
# remove production from standalone pm2 container
184
+
yarn run undeploy
185
+
```
186
+
174
187
Other commands
175
188
--------------
176
189
@@ -201,87 +214,105 @@ See [the guide on the wiki](https://wiki.duraspace.org/display/DSPACE/DSpace+7+-
0 commit comments