Skip to content

Commit 49e80e7

Browse files
GuruPKKterakilobyte
authored andcommitted
Update Makefile
1 parent aa0902e commit 49e80e7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ PRODUCTION_URL="https://docs.mongodb.com"
55
STAGING_BUCKET=docs-mongodb-org-stg
66
PRODUCTION_BUCKET=docs-mongodb-org-prd
77
PROJECT=php-library
8-
9-
ifeq ($(ENV), 'dotcom_stg')
10-
STAGING_URL="https://docs-mongodborg-staging.corp.mongodb.com"
8+
STGPREFIX=php-library
9+
PREFIX=php-library
10+
ifeq ($(ENV), 'dotcom')
11+
STAGING_URL="https://mongodbcom-cdn.website.staging.corp.mongodb.com"
1112
STAGING_BUCKET=docs-mongodb-org-dotcomstg
12-
endif
13-
14-
ifeq ($(ENV), 'dotcom_prd')
15-
PRODUCTION_URL="https://mongodb.com/docs"
13+
PRODUCTION_URL="https://mongodb.com"
1614
PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd
15+
PREFIX=docs-qa/php-library
16+
STGPREFIX=docs/php-library
1717
endif
1818

1919
# Parse our published-branches configuration file to get the name of
@@ -58,8 +58,8 @@ stage: ## Host online for review
5858
# --stage indicates that mut-publish should publish to the staging bucket (not the prod bucket)
5959
# if ${ARGS}, then additonal arguments
6060

61-
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
62-
@echo "Hosted at ${STAGING_URL}/${PROJECT}/${USER}/${GIT_BRANCH}/index.html"
61+
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${STGPREFIX} --stage ${ARGS}
62+
@echo "Hosted at ${STAGING_URL}/${STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
6363

6464

6565

@@ -78,9 +78,9 @@ deploy: publish ## Deploy to the production bucket
7878
# --verbose prints out a detail of what files are being uploaded/deleted/etc.
7979
# --dry-run instructs mut-publish to do everything *except* actually put stuff on the internet.
8080
# if ${ARGS}, then additonal arguments
81-
mut-publish build/public ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy ${ARGS}
81+
mut-publish build/public ${PRODUCTION_BUCKET} --prefix=${PREFIX} --deploy ${ARGS}
8282

83-
@echo "Hosted at ${PRODUCTION_URL}/${PROJECT}/index.html"
83+
@echo "Hosted at ${PRODUCTION_URL}/${PREFIX}/index.html"
8484

8585
$(MAKE) deploy-search-index
8686

0 commit comments

Comments
 (0)