Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
order-management-react
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
order-management-react
Commits
92d68365
Commit
92d68365
authored
May 18, 2021
by
earndt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-Inf]
👷
Changes deployment.yaml, services for deployment [
@earndt
]
parent
9dfb31d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
deployment.yaml
deployment.yaml
+4
-1
ManagerService.ts
src/services/ManagerService.ts
+2
-1
OrderService.ts
src/services/OrderService.ts
+2
-1
No files found.
deployment.yaml
View file @
92d68365
...
...
@@ -14,10 +14,13 @@ spec:
spec
:
containers
:
-
name
:
afp-order-management-react-container
image
:
nexus.mynisum.com/afp-order-management-react:
7
image
:
nexus.mynisum.com/afp-order-management-react:
8
imagePullPolicy
:
Always
ports
:
-
containerPort
:
8087
env
:
-
name
:
ORDER_MANAGEMENT_BACKEND_URI
value
:
"
10.0.246.138:8086"
imagePullSecrets
:
-
name
:
registry-creds
...
...
src/services/ManagerService.ts
View file @
92d68365
...
...
@@ -2,7 +2,8 @@ import { Manager } from 'Manager'
import
{
tokenStorage
}
from
'utils'
import
Axios
,
{
AxiosError
}
from
'axios'
const
URL
=
(
process
.
env
.
REACT_APP_BACKEND_URL
as
string
)
// const URL = (process.env.REACT_APP_BACKEND_URL as string)
const
URL
=
process
.
env
.
ORDER_MANAGEMENT_BACKEND_URI
const
BASE_PATH
=
`
${
URL
}
/api/managers`
...
...
src/services/OrderService.ts
View file @
92d68365
...
...
@@ -3,7 +3,8 @@ import { OrdersRequestBody } from 'ManagerRequests'
import
Axios
,
{
AxiosError
}
from
'axios'
import
{
sleep
}
from
'utils'
const
URL
=
(
process
.
env
.
REACT_APP_BACKEND_URL
as
string
)
// const URL = (process.env.REACT_APP_BACKEND_URL as string)
const
URL
=
process
.
env
.
ORDER_MANAGEMENT_BACKEND_URI
const
BASE_PATH
=
`
${
URL
}
/api/orders`
...
...
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