-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Makefile #6190
Update Makefile #6190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GuruPKK Thanks for the PR, requesting some changes. Cheers
Makefile
Outdated
@@ -5,6 +5,16 @@ PRODUCTION_URL="https://docs.mongodb.com" | |||
STAGING_BUCKET=docs-mongodb-org-stg | |||
PRODUCTION_BUCKET=docs-mongodb-org-prd | |||
|
|||
ifeq ($(ENV), 'dotcom_stg') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should avoid calling this "ENV" to avoid conflict with the unix env
command? Maybe something like docsenv or publishenv?
Makefile
Outdated
STAGING_BUCKET=docs-mongodb-org-dotcomstg | ||
endif | ||
|
||
ifeq ($(ENV), 'dotcom_prd') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Writers will want to stage and publish to the same environment. Let's have one variable check for "dotcom" and set both the staging and prod URLs/buckets in one shot.
Makefile
Outdated
@@ -5,6 +5,16 @@ PRODUCTION_URL="https://docs.mongodb.com" | |||
STAGING_BUCKET=docs-mongodb-org-stg | |||
PRODUCTION_BUCKET=docs-mongodb-org-prd | |||
|
|||
ifeq ($(ENV), 'dotcom_stg') | |||
STAGING_URL="https://docs-mongodborg-staging.corp.mongodb.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per discussion staging URL needs to change.
No description provided.