@@ -17,8 +17,8 @@ DOTCOM_STAGING_URL="https://mongodbcom-cdn.website.staging.corp.mongodb.com"
17
17
DOTCOM_STAGING_BUCKET =docs-mongodb-org-dotcomstg
18
18
DOTCOM_PRODUCTION_URL ="https://mongodb.com"
19
19
DOTCOM_PRODUCTION_BUCKET =docs-mongodb-org-dotcomprd
20
- DOTCOM_PREFIX =docs-qa /mongoid
21
- DOTCOM_STGPREFIX =docs-qa /mongoid
20
+ DOTCOM_PREFIX =docs/mongoid
21
+ DOTCOM_STGPREFIX =docs/mongoid
22
22
23
23
# Parse our published-branches configuration file to get the name of
24
24
# the current "stable" branch. This is weird and dumb, yes.
@@ -53,34 +53,21 @@ publish: migrate ## Builds this branch's publishable HTML and other artifacts un
53
53
if [ ${GIT_BRANCH} = master ]; then mut-redirects config/redirects -o build/public/.htaccess; fi
54
54
55
55
stage : # # Host online for review
56
- mut-publish build/${GIT_BRANCH} /html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
57
- @echo " Hosted at ${STAGING_URL} /${PROJECT} /${USER} /${GIT_BRANCH} /index.html"
58
-
59
56
mut-publish build/${GIT_BRANCH} /html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
60
57
@echo " Hosted at ${DOTCOM_STAGING_URL} /${DOTCOM_STGPREFIX} /${USER} /${GIT_BRANCH} /index.html"
61
58
62
59
63
60
64
61
fake-deploy : build/public/${GIT_BRANCH} # # Create a fake deployment in the staging bucket
65
- mut-publish build/public ${STAGING_BUCKET} --prefix=${PROJECT} --deploy --verbose ${ARGS}
66
- @echo " Hosted at ${STAGING_URL} /${PROJECT} /${GIT_BRANCH} /index.html"
67
-
68
62
mut-publish build/public ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --deploy --verbose ${ARGS}
69
63
@echo " Hosted at ${DOTCOM_STAGING_URL} /${DOTCOM_STGPREFIX} /${GIT_BRANCH} /index.html"
70
64
71
65
72
66
73
67
deploy : build/public/${GIT_BRANCH} # # Deploy to the production bucket
74
- mut-publish build/public/ ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy --redirects build/public/.htaccess ${ARGS}
75
-
76
- @echo "Hosted at ${PRODUCTION_URL}/${PROJECT}/${GIT_BRANCH}"
77
-
78
68
mut-publish build/public/ ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --redirects build/public/.htaccess ${ARGS}
79
-
80
69
@echo " Hosted at ${DOTCOM_PRODUCTION_URL} /${DOTCOM_PREFIX} /${GIT_BRANCH} "
81
70
82
-
83
-
84
71
$(MAKE) deploy-search-index
85
72
86
73
deploy-search-index : # # Update the search index for this branch
0 commit comments