Skip to content

Commit 9e7c6e5

Browse files
authored
Update Makefile
1 parent b4cc3e9 commit 9e7c6e5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

with_jsx/server/mojo_react_app/Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
DOCKER_TAG ?= my_app:development
1+
DOCKER_TAG ?= mojo_react_app:development
22
NO_CACHE ?= false
33
PULL ?= false
44
BUILD_TYPE ?= development
5-
CONTAINER_NAME ?= my_app
5+
CONTAINER_NAME ?= mojo_react_app
66
HTTPS_OUT_PORT ?= 443
77
HTTPS_IN_PORT ?= 443
88
HTTP_OUT_PORT ?= 80
@@ -59,23 +59,25 @@ dev:
5959

6060
stag:
6161
$(eval override BUILD_TYPE=staging)
62-
$(eval override DOCKER_TAG = ${CONTAINER_NAME}:${BUILD_TYPE})
63-
$(eval override ADDRESS=$(shell dig +short <your staging URL e.g. my_app-staging.com>))
62+
$(eval override DOCKER_TAG=${CONTAINER_NAME}:${BUILD_TYPE})
63+
# This will return only the IP address associated with the domain name ans assign it to ADDRESS
64+
$(eval override ADDRESS=$(shell dig +short <your staging URL e.g. mojo-react-app-staging.com>))
6465

6566
make build -e PULL=true NO_CACHE=true DOCKER_TAG=${DOCKER_TAG}
6667
make clean_container -e BUILD_TYPE=${BUILD_TYPE}
67-
make create -e ADDRESS=${ADDRESS} HTTPS_OUT_PORT=443 HTTPS_IN_PORT=443 BUILD_TYPE=${BUILD_TYPE} DOCKER_TAG=${DOCKER_TAG}
68+
make create -e ADDRESS=${ADDRESS} BUILD_TYPE=${BUILD_TYPE} DOCKER_TAG=${DOCKER_TAG}
6869
make start -e BUILD_TYPE=${BUILD_TYPE}
6970
make show
7071

7172
prod:
7273
$(eval override BUILD_TYPE=production)
7374
$(eval override DOCKER_TAG = ${CONTAINER_NAME}:${BUILD_TYPE})
74-
$(eval override ADDRESS=$(shell dig +short <your production URL e.g. my_app.com))
75+
# This will return only the IP address associated with the domain name ans assign it to ADDRESS
76+
$(eval override ADDRESS=$(shell dig +short <your production URL e.g. mojo-react-app.com))
7577

7678
make build -e PULL=true NO_CACHE=true DOCKER_TAG=${DOCKER_TAG}
7779
make clean_container -e BUILD_TYPE=${BUILD_TYPE}
78-
make create -e ADDRESS=${ADDRESS} HTTPS_OUT_PORT=443 HTTPS_IN_PORT=443 BUILD_TYPE=${BUILD_TYPE} DOCKER_TAG=${DOCKER_TAG}
80+
make create -e ADDRESS=${ADDRESS} BUILD_TYPE=${BUILD_TYPE} DOCKER_TAG=${DOCKER_TAG}
7981
make start -e BUILD_TYPE=${BUILD_TYPE}
8082
make show
8183

0 commit comments

Comments
 (0)