@@ -8,6 +8,14 @@ PRODUCTION_BUCKET=docs-mongodb-org-prd
8
8
# "PROJECT" currently exists to support having multiple projects
9
9
# within one bucket. For the manual it is empty.
10
10
PROJECT =
11
+ DOTCOM_STAGING_URL ="https://mongodbcom-cdn.website.staging.corp.mongodb.com"
12
+ DOTCOM_STAGING_BUCKET =docs-mongodb-org-dotcomstg
13
+ DOTCOM_PRODUCTION_URL ="https://mongodb.com"
14
+ DOTCOM_PRODUCTION_BUCKET =docs-mongodb-org-dotcomprd
15
+ DOTCOM_PREFIX =docs-qa
16
+ DOTCOM_STGPREFIX =docs-qa
17
+
18
+
11
19
12
20
DRIVERS_PATH =source/driver-examples
13
21
@@ -52,7 +60,14 @@ publish: examples ## Builds this branch's publishable HTML and other artifacts u
52
60
# * Upload each to the S3 bucket under <project>/<username>/<basename>/<filename>
53
61
stage : # # Host online for review
54
62
mut-publish build/${GIT_BRANCH} /html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
55
- @echo " Hosted at ${STAGING_URL} /${USER} /${GIT_BRANCH} /index.html"
63
+ @echo " Hosted at ${STAGING_URL} /${PROJECT} /${USER} /${GIT_BRANCH} /index.html"
64
+
65
+
66
+ mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
67
+ @echo "Hosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
68
+
69
+
70
+
56
71
57
72
# - Enter build/public/<branch>, as well as any symbolic links pointing
58
73
# to it, and recurse over each file <basename>/<filename>.
@@ -71,7 +86,11 @@ stage: ## Host online for review
71
86
deploy : build/public # # Deploy to the production bucket
72
87
mut-publish build/public ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy --redirect-prefix=' v[0-9]\.[0-9]' --redirect-prefix=' manual' --redirect-prefix=' master' ${ARGS}
73
88
74
- @echo "Hosted at ${PRODUCTION_URL}/index.html"
89
+ @echo "Hosted at ${PRODUCTION_URL}/${PROJECT}/index.html"
90
+
91
+ mut-publish build/public ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --redirect-prefix='v[0-9]\.[0-9]' --redirect-prefix='manual' --redirect-prefix='master' ${ARGS}
92
+
93
+ @echo "Hosted at ${DOTCOM_PRODUCTION_URL}/${DOTCOM_PREFIX}/index.html"
75
94
76
95
$(MAKE) deploy-search-index
77
96
0 commit comments