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
41c409fc
Commit
41c409fc
authored
May 19, 2021
by
earndt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-Inf]
👷
Modifies settings for deployment [
@earndt
]
parent
b9761dbc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
9 deletions
+5
-9
.env
.env
+2
-1
deployment.yaml
deployment.yaml
+1
-4
ManagerService.ts
src/services/ManagerService.ts
+1
-2
OrderService.ts
src/services/OrderService.ts
+1
-2
No files found.
.env
View file @
41c409fc
REACT_APP_BACKEND_URL=http://localhost:8084
#REACT_APP_BACKEND_URL=http://localhost:8084
REACT_APP_BACKEND_URL=10.0.246.138:8086
PORT=8090
REACT_APP_GOOGLE_CLIENT_ID=925243198137-hhe2e3ejlethf321hh7tbm7ontc19cpj.apps.googleusercontent.com
\ No newline at end of file
deployment.yaml
View file @
41c409fc
...
...
@@ -14,13 +14,10 @@ spec:
spec
:
containers
:
-
name
:
afp-order-management-react-container
image
:
nexus.mynisum.com/afp-order-management-react:1
1
image
:
nexus.mynisum.com/afp-order-management-react:1
2
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 @
41c409fc
...
...
@@ -2,8 +2,7 @@ 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
.
ORDER_MANAGEMENT_BACKEND_URI
const
URL
=
(
process
.
env
.
REACT_APP_BACKEND_URL
as
string
)
const
BASE_PATH
=
`
${
URL
}
/api/managers`
...
...
src/services/OrderService.ts
View file @
41c409fc
...
...
@@ -3,8 +3,7 @@ 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
.
ORDER_MANAGEMENT_BACKEND_URI
const
URL
=
(
process
.
env
.
REACT_APP_BACKEND_URL
as
string
)
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