Merge pull request #651 from gnosis/hotfix/update-endpoints

Update safe relay and transaction endpoints
This commit is contained in:
David Albela Pérez 2020-03-10 19:06:48 +01:00 committed by GitHub
commit 8b578cae05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 6 deletions

View File

@ -27,7 +27,7 @@ before_install:
# Install truffle # Install truffle
- yarn global add truffle - yarn global add truffle
script: script:
- bash ./config/travis/build.sh - ./config/travis/build.sh
after_success: after_success:
# Pull Request - Deploy it to a review environment # Pull Request - Deploy it to a review environment
# Travis doesn't do deploy step with pull requests builds # Travis doesn't do deploy step with pull requests builds
@ -69,6 +69,6 @@ deploy:
on: on:
tags: true tags: true
- provider: script - provider: script
script: bash config/travis/prepare_production_deployment.sh script: ./config/travis/prepare_production_deployment.sh
on: on:
tags: true tags: true

7
config/travis/build.sh Normal file → Executable file
View File

@ -2,7 +2,12 @@
export NODE_ENV=production; export NODE_ENV=production;
if [[ -n "$TRAVIS_TAG" ]]; then export REACT_APP_ENV='production'; fi if [[ -n "$TRAVIS_TAG" ]]; then
export REACT_APP_ENV='production';
elif [[ "$TRAVIS_BRANCH" == "development" ]]; then
export NODE_ENV=development;
fi
yarn lint:check yarn lint:check
yarn prettier:check yarn prettier:check

0
config/travis/prepare_production_deployment.sh Normal file → Executable file
View File

View File

@ -5,7 +5,7 @@ import { TX_SERVICE_HOST, RELAY_API_URL } from '~/config/names'
const devMainnetConfig = { const devMainnetConfig = {
...devConfig, ...devConfig,
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1/', [TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1/',
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/', [RELAY_API_URL]: 'https://safe-relay.mainnet.staging.gnosisdev.com/api/v1/',
} }
export default devMainnetConfig export default devMainnetConfig

View File

@ -4,7 +4,7 @@ import { TX_SERVICE_HOST, SIGNATURES_VIA_METAMASK, RELAY_API_URL } from '~/confi
const prodConfig = { const prodConfig = {
[TX_SERVICE_HOST]: 'https://safe-transaction.rinkeby.gnosis.io/api/v1/', [TX_SERVICE_HOST]: 'https://safe-transaction.rinkeby.gnosis.io/api/v1/',
[SIGNATURES_VIA_METAMASK]: false, [SIGNATURES_VIA_METAMASK]: false,
[RELAY_API_URL]: 'https://safe-relay.staging.gnosisdev.com/api/v1/', [RELAY_API_URL]: 'https://safe-relay.rinkeby.gnosis.io/api/v1/',
} }
export default prodConfig export default prodConfig

View File

@ -5,7 +5,7 @@ import { TX_SERVICE_HOST, RELAY_API_URL } from '~/config/names'
const stagingMainnetConfig = { const stagingMainnetConfig = {
...stagingConfig, ...stagingConfig,
[TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1/', [TX_SERVICE_HOST]: 'https://safe-transaction.mainnet.staging.gnosisdev.com/api/v1/',
[RELAY_API_URL]: 'https://safe-relay.gnosis.io/api/v1/', [RELAY_API_URL]: 'https://safe-relay.mainnet.staging.gnosisdev.com/api/v1/',
} }
export default stagingMainnetConfig export default stagingMainnetConfig