diff --git a/Makefile b/Makefile index 4fe31c252a1..b6a7223bee7 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,19 @@ GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) USER=`whoami` STAGING_URL="https://docs-mongodborg-staging.corp.mongodb.com" PRODUCTION_URL="https://docs.mongodb.com" -STAGING_BUCKET=docs-mongodb-org-stg +STAGING_BUCKET=docs-mongodb-org-prd-staging PRODUCTION_BUCKET=docs-mongodb-org-prd - # "PROJECT" currently exists to support having multiple projects # within one bucket. For the manual it is empty. PROJECT= +DOTCOM_STAGING_URL="https://mongodbcom-cdn.website.staging.corp.mongodb.com" +DOTCOM_STAGING_BUCKET=docs-mongodb-org-dotcomstg +DOTCOM_PRODUCTION_URL="https://mongodb.com" +DOTCOM_PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd +DOTCOM_PREFIX=docs-qa +DOTCOM_STGPREFIX=docs-qa + + DRIVERS_PATH=source/driver-examples @@ -52,7 +59,13 @@ publish: examples ## Builds this branch's publishable HTML and other artifacts u # * Upload each to the S3 bucket under /// stage: ## Host online for review mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS} - @echo "Hosted at ${STAGING_URL}/${USER}/${GIT_BRANCH}/index.html" + @echo "Hosted at ${STAGING_URL}/${PROJECT}/${USER}/${GIT_BRANCH}/index.html" + + mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS} + @echo "Hosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html" + + + # - Enter build/public/, as well as any symbolic links pointing # to it, and recurse over each file /. @@ -71,7 +84,14 @@ stage: ## Host online for review deploy: build/public ## Deploy to the production bucket mut-publish build/public ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy --redirect-prefix='v[0-9]\.[0-9]' --redirect-prefix='manual' --redirect-prefix='master' ${ARGS} - @echo "Hosted at ${PRODUCTION_URL}/index.html" + @echo "Hosted at ${PRODUCTION_URL}/${PREFIX}/index.html" + + + 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} + + @echo "Hosted at ${DOTCOM_PRODUCTION_URL}/${DOTCOM_PREFIX}/index.html" + + $(MAKE) deploy-search-index