add staging config

This commit is contained in:
Mikhail Mikheev 2019-09-25 15:15:45 +04:00
parent 55fcef8c49
commit 7e4501f380
2 changed files with 14 additions and 3 deletions

View File

@ -18,7 +18,7 @@ yarn add flow-type // recommended usage of -g flag
We use [yarn](https://yarnpkg.com) in our infrastacture, so we decided to go with yarn in the README
### Installing
### Installing and running
A step by step series of examples that tell you have to get a development env running
@ -37,6 +37,17 @@ For the mainnet version:
REACT_APP_NETWORK=mainnet yarn start
```
### Building
*For rinkeby:*
```
yarn build
```
*For mainnet:*
```
REACT_APP_NETWORK=mainnet yarn build
```
## Running the tests

View File

@ -17,10 +17,10 @@ const configuration = () => {
if (process.env.NODE_ENV === 'production') {
if (process.env.REACT_APP_NETWORK === 'mainnet') {
return process.env.REACT_APP_ENV === 'staging' ? mainnetStagingConfig : mainnetProdConfig
return process.env.REACT_APP_ENV === 'production' ? mainnetProdConfig : mainnetStagingConfig
}
return process.env.REACT_APP_ENV === 'staging' ? stagingConfig : prodConfig
return process.env.REACT_APP_ENV === 'production' ? prodConfig : stagingConfig
}
return process.env.REACT_APP_NETWORK === 'mainnet' ? mainnetDevConfig : devConfig