Skip to content

Commit eb4aa47

Browse files
author
Chris Cho
authored
Merge pull request #27 from mongodb/fix-search
DOP-3026: publish manifests to correct bucket/path
2 parents 82844c8 + 990281a commit eb4aa47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ DOTCOM_PRODUCTION_URL="https://mongodb.com"
1212
DOTCOM_PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd
1313
DOTCOM_PREFIX=docs/php-library
1414
DOTCOM_STGPREFIX=docs/php-library
15+
SEARCH_INDEX_BUCKET=docs-search-indexes-test
16+
1517

1618
# Parse our published-branches configuration file to get the name of
1719
# the current "stable" branch. This is weird and dumb, yes.
@@ -85,8 +87,8 @@ deploy: publish ## Deploy to the production bucket
8587
deploy-search-index: ## Update the search index for this branch
8688
@echo "Building search index"
8789
if [ ${STABLE_BRANCH} = ${GIT_BRANCH} ]; then \
88-
mut-index upload build/public/${GIT_BRANCH} -o docs-php-library-${GIT_BRANCH}.json -u ${PRODUCTION_URL}/${PROJECT}/${GIT_BRANCH} -b ${PRODUCTION_BUCKET} -g -s; \
90+
mut-index upload build/public/${GIT_BRANCH} -o docs-php-library-${GIT_BRANCH}.json -u ${PRODUCTION_URL}/${PROJECT}/${GIT_BRANCH} -b ${SEARCH_INDEX_BUCKET} -p search-indexes/prd -g -s; \
8991
else \
90-
mut-index upload build/public/${GIT_BRANCH} -o docs-php-library-${GIT_BRANCH}.json -u ${PRODUCTION_URL}/${PROJECT}/${GIT_BRANCH} -b ${PRODUCTION_BUCKET} -s; \
92+
mut-index upload build/public/${GIT_BRANCH} -o docs-php-library-${GIT_BRANCH}.json -u ${PRODUCTION_URL}/${PROJECT}/${GIT_BRANCH} -b ${SEARCH_INDEX_BUCKET} -p search-indexes/prd -s; \
9193
fi
9294

0 commit comments

Comments
 (0)