@@ -5,15 +5,15 @@ PRODUCTION_URL="https://docs.mongodb.com"
5
5
STAGING_BUCKET =docs-mongodb-org-stg
6
6
PRODUCTION_BUCKET =docs-mongodb-org-prd
7
7
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"
11
12
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"
16
14
PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd
15
+ PREFIX=docs-qa/php-library
16
+ STGPREFIX=docs/php-library
17
17
endif
18
18
19
19
# Parse our published-branches configuration file to get the name of
@@ -58,8 +58,8 @@ stage: ## Host online for review
58
58
# --stage indicates that mut-publish should publish to the staging bucket (not the prod bucket)
59
59
# if ${ARGS}, then additonal arguments
60
60
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"
63
63
64
64
65
65
@@ -78,9 +78,9 @@ deploy: publish ## Deploy to the production bucket
78
78
# --verbose prints out a detail of what files are being uploaded/deleted/etc.
79
79
# --dry-run instructs mut-publish to do everything *except* actually put stuff on the internet.
80
80
# 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}
82
82
83
- @echo "Hosted at ${PRODUCTION_URL}/${PROJECT }/index.html"
83
+ @echo "Hosted at ${PRODUCTION_URL}/${PREFIX }/index.html"
84
84
85
85
$(MAKE) deploy-search-index
86
86
0 commit comments