Skip to content

Commit 3809445

Browse files
authored
Update Makefile (#108)
1 parent aa71854 commit 3809445

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

Makefile

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@ GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`
22
USER=`whoami`
33
STAGING_URL="https://docs-mongodborg-staging.corp.mongodb.com"
44
PRODUCTION_URL="https://docs.mongodb.org/meta"
5-
STAGING_BUCKET=docs-mongodb-org-staging
6-
PRODUCTION_BUCKET=docs-mongodb-org-prod
5+
STAGING_BUCKET=docs-mongodb-org-prd-staging
6+
PRODUCTION_BUCKET=docs-mongodb-org-prd
77

88
# "PROJECT" currently exists to support having multiple projects
99
# within one bucket. For the manual it is empty.
1010
PROJECT=meta
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/meta
16+
DOTCOM_STGPREFIX=docs-qa/meta
1117

1218
.PHONY: help lint html stage deploy
1319

@@ -34,6 +40,12 @@ stage: ## Host online for review
3440
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
3541
@echo "Hosted at ${STAGING_URL}/${PROJECT}/${USER}/${GIT_BRANCH}/index.html"
3642

43+
mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
44+
@echo "Hosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
45+
46+
47+
48+
3749
# - Enter build/public/<branch>, as well as any symbolic links pointing
3850
# to it, and recurse over each file <basename>/<filename>.
3951
# * Upload each to the S3 bucket under <project>/<basename>/<filename>.
@@ -52,3 +64,8 @@ deploy: build/public ## Deploy to the production bucket
5264
mut-publish build/public ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy --all-subdirectories ${ARGS}
5365

5466
@echo "Hosted at ${PRODUCTION_URL}/index.html"
67+
68+
69+
mut-publish build/public ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --all-subdirectories ${ARGS}
70+
71+
@echo "Hosted at ${DOTCOM_PRODUCTION_URL}/${DOTCOM_PREFIX}/index.html"

0 commit comments

Comments
 (0)