Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
urgi-is
data-discovery
Commits
54354635
Commit
54354635
authored
Jun 05, 2019
by
Raphaël Flores
Browse files
Configure per app dev port for serving angular frontend code.
parent
42092cbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
54354635
...
...
@@ -45,8 +45,8 @@ Then in the `frontend` directory, run `yarn` to download the dependencies.
Then run
`yarn start`
to start the app, using the proxy conf to reroute calls to
`/api`
to the backend.
The application will be available on:
-
http://localhost:4
2
00/rare-dev for RARe (runs with:
`yarn start:rare`
or simply
`yarn start`
)
-
http://localhost:4
2
00/wheatis-dev for WheatIS (runs with:
`yarn start:wheatis`
)
-
http://localhost:4
0
00/rare-dev for RARe (runs with:
`yarn start:rare`
or simply
`yarn start`
)
-
http://localhost:4
1
00/wheatis-dev for WheatIS (runs with:
`yarn start:wheatis`
)
## Build
...
...
frontend/README.md
View file @
54354635
...
...
@@ -7,7 +7,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
Run
`yarn start`
or
`yarn start:rare`
for a dev server.
Navigate to
`http://localhost:4200/rare`
. The app will automatically reload if you change any of the source files.
To start another app, like WheatIS, you can run
`yarn start:wheatis`
, and go to
`http://localhost:4
2
00/wheatis`
.
To start another app, like WheatIS, you can run
`yarn start:wheatis`
, and go to
`http://localhost:4
3
00/wheatis`
.
## Build
...
...
frontend/package.json
View file @
54354635
...
...
@@ -3,10 +3,10 @@
"version"
:
"0.0.0"
,
"scripts"
:
{
"ng"
:
"ng"
,
"start"
:
"ng serve --configuration=rare"
,
"start:rare"
:
"ng serve --configuration=rare"
,
"start:wheatis"
:
"ng serve --configuration=wheatis"
,
"start:data-discovery"
:
"ng serve --configuration=data-discovery"
,
"start"
:
"ng serve --configuration=rare
--port=4000
"
,
"start:rare"
:
"ng serve --configuration=rare
--port=4000
"
,
"start:wheatis"
:
"ng serve --configuration=wheatis
--port=4100
"
,
"start:data-discovery"
:
"ng serve --configuration=data-discovery
--port=4200
"
,
"build"
:
"ng build --configuration=rare-production --no-progress"
,
"build:rare"
:
"ng build --configuration=rare-production --no-progress"
,
"build:wheatis"
:
"ng build --configuration=wheatis-production --no-progress"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment