fix(change makefile): change makefile for preprod

keep-around/982231ba92cd9ce8c8bd90ebb4b1b45cb77e35c2
Andrei Dekterev 4 years ago
parent 4bd90cdb4b
commit 982231ba92
  1. 11
      Makefile
  2. 2
      src/features/AuthStore/helpers.tsx

@ -14,7 +14,14 @@ build: clean
REACT_APP_ENV=staging \
REACT_APP_CLIENT=instat \
npm run build
build-stage: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=preproduction \
REACT_APP_CLIENT=instat \
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
npm run build
build-a: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
@ -113,7 +120,7 @@ facr-prod: clean
deploy-all: prod preprod facr-prod
stage: build
stage: build-stage
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/wwwroot/
a-stage: build-a

@ -23,7 +23,7 @@ const redirectUrl = () => {
if (process.env.NODE_ENV === 'development') {
return `${window.origin}/redirect`
}
if (ENV === 'staging') {
if (ENV === 'staging' || ENV === 'preproduction') {
return `https://${stageENV}.instat.tv/redirect`
}
return `https://${client.name}.tv/redirect`

Loading…
Cancel
Save