This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15e24f7
commit b0ba5b6
Showing
3 changed files
with
186 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Global settings applied to the whole site. | ||
[build] | ||
base = "/" | ||
publish = "app/" | ||
command = "yarn run setup && yarn run build-all" | ||
|
||
# Read https://www.netlify.com/docs/continuous-deployment/#deploy-contexts | ||
# to understand how context below works. | ||
|
||
[context.production.environment] | ||
APIHOST = "https://platform-api.opentargets.io/" | ||
|
||
# Deploy Preview context: All Deploy Previews (ie.PRs) | ||
# will inherit these settings. | ||
[context.deploy-preview] | ||
# command = "yarn run setup && yarn run build-qa" | ||
# [[headers]] | ||
# for = "/*" | ||
# [headers.values] | ||
# Basic-Auth = "opentargets:opentargets" | ||
|
||
[context.deploy-preview.environment] | ||
APIHOST = "https://platform-api.opentargets.io/" | ||
# [[headers]] | ||
# for = "/*" | ||
# [headers.values] | ||
# # Basic-Auth header | ||
# Basic-Auth = "opentargets:opentargets" | ||
|
||
# Branch Deploy context: All deploys that are not in | ||
# an active Deploy Preview will inherit these settings. | ||
# By default | ||
[context.branch-deploy] | ||
# command = "yarn run setup && yarn run build-qa" | ||
# [[headers]] | ||
# for = "/*" | ||
# [headers.values] | ||
# Basic-Auth = "opentargets:opentargets" | ||
|
||
[context.branch-deploy.environment] | ||
APIHOST = "https://platform-api-qc.opentargets.io/" | ||
# [[headers]] | ||
# for = "/*" | ||
# [headers.values] | ||
# # Basic-Auth header | ||
# Basic-Auth = "opentargets:opentargets" | ||
|
||
|
||
# CAREFUL!!! When you point a particular branch to a specific API below, | ||
# the change will not continue working once the branch is merged into master. | ||
# master.targetvalidation.org will always point to the APIHOST specified in context.branch-deploy.environment above | ||
# [context.branch_name.environment] | ||
# APIHOST = "https://the-api-url-we-want.com" | ||
|
||
[context.efo3.environment] | ||
APIHOST = "https://platform-api-qc-efo3.opentargets.io/" | ||
# [[headers]] | ||
# for = "/build/config.json" | ||
# [headers.values] | ||
# Access-Control-Allow-Origin = "*" | ||
|
||
|
||
#To release: | ||
# 1) create a v3.xx (or whatever version you use) branch. By default it would point to master. | ||
# If instead you need to point it to another DEV api, you can uncomment the block below | ||
|
||
# [context."v3.7".environment] | ||
# APIHOST = "https://MYSPECIALAPIBRANCH-dot-open-targets-eu-dev.appspot.com/" | ||
|
||
|
||
# 2) when backend team tells us the API has been moved to pre-release, and gives you an URL | ||
# (for eg. an API such as prod-20180618-1252-dot-api.opentargets.io) | ||
# 1) uncomment below to point the branch to the pre-release API. | ||
# 2) create a `staging` tag on github using the `draft a new release` functionality | ||
# | ||
# NOTE: The API url SHOULD not end anymore in `open-targets-eu-dev` but | ||
# there should be `prod` somewhere in the name | ||
|
||
[context.qa.environment] | ||
APIHOST = "https://platform-api-qc.opentargets.io/" | ||
# [[headers]] | ||
# for = "/*" | ||
# [headers.values] | ||
# # Basic-Auth header | ||
# Basic-Auth = "opentargets:opentargets" | ||
|
||
# [context.shipit.environment] | ||
# APIHOST = "http://prod-20180625-1203.api.opentargets.io/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Global settings applied to the whole site. | ||
[build] | ||
base = "/" | ||
publish = "app/" | ||
command = "yarn run setup && yarn run build-all" | ||
|
||
# Read https://www.netlify.com/docs/continuous-deployment/#deploy-contexts | ||
# to understand how context below works. | ||
|
||
[context.production.environment] | ||
APIHOST = "https://platform-api.opentargets.io/" | ||
|
||
# Deploy Preview context: All Deploy Previews (ie.PRs) | ||
# will inherit these settings. | ||
[context.deploy-preview] | ||
# command = "yarn run setup && yarn run build-qa" | ||
# [[headers]] | ||
# for = "/*" | ||
# [headers.values] | ||
# Basic-Auth = "opentargets:opentargets" | ||
|
||
[context.deploy-preview.environment] | ||
APIHOST = "https://platform-api.opentargets.io/" | ||
# [[headers]] | ||
# for = "/*" | ||
# [headers.values] | ||
# # Basic-Auth header | ||
# Basic-Auth = "opentargets:opentargets" | ||
|
||
# Branch Deploy context: All deploys that are not in | ||
# an active Deploy Preview will inherit these settings. | ||
# By default | ||
[context.branch-deploy] | ||
# command = "yarn run setup && yarn run build-qa" | ||
# [[headers]] | ||
# for = "/*" | ||
# [headers.values] | ||
# Basic-Auth = "opentargets:opentargets" | ||
|
||
[context.branch-deploy.environment] | ||
APIHOST = "https://platform-api-qc.opentargets.io/" | ||
[[headers]] | ||
for = "/*" | ||
[headers.values] | ||
# Basic-Auth header | ||
Basic-Auth = "opentargets:opentargets" | ||
|
||
|
||
# CAREFUL!!! When you point a particular branch to a specific API below, | ||
# the change will not continue working once the branch is merged into master. | ||
# master.targetvalidation.org will always point to the APIHOST specified in context.branch-deploy.environment above | ||
# [context.branch_name.environment] | ||
# APIHOST = "https://the-api-url-we-want.com" | ||
|
||
[context.efo3.environment] | ||
APIHOST = "https://platform-api-qc-efo3.opentargets.io/" | ||
# [[headers]] | ||
# for = "/build/config.json" | ||
# [headers.values] | ||
# Access-Control-Allow-Origin = "*" | ||
|
||
|
||
#To release: | ||
# 1) create a v3.xx (or whatever version you use) branch. By default it would point to master. | ||
# If instead you need to point it to another DEV api, you can uncomment the block below | ||
|
||
# [context."v3.7".environment] | ||
# APIHOST = "https://MYSPECIALAPIBRANCH-dot-open-targets-eu-dev.appspot.com/" | ||
|
||
|
||
# 2) when backend team tells us the API has been moved to pre-release, and gives you an URL | ||
# (for eg. an API such as prod-20180618-1252-dot-api.opentargets.io) | ||
# 1) uncomment below to point the branch to the pre-release API. | ||
# 2) create a `staging` tag on github using the `draft a new release` functionality | ||
# | ||
# NOTE: The API url SHOULD not end anymore in `open-targets-eu-dev` but | ||
# there should be `prod` somewhere in the name | ||
|
||
[context.qa.environment] | ||
APIHOST = "https://platform-api-qc.opentargets.io/" | ||
[[headers]] | ||
for = "/*" | ||
[headers.values] | ||
# Basic-Auth header | ||
Basic-Auth = "opentargets:opentargets" | ||
|
||
# [context.shipit.environment] | ||
# APIHOST = "http://prod-20180625-1203.api.opentargets.io/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters