You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
198 lines
5.4 KiB
198 lines
5.4 KiB
install:
|
|
npm install
|
|
|
|
develop:
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_CLIENT=insports \
|
|
npm start
|
|
|
|
clean:
|
|
rm -rf build
|
|
|
|
build: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
npm run build
|
|
|
|
build-stage: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=preproduction \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
npm run build
|
|
|
|
build-a: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-a \
|
|
npm run build
|
|
|
|
build-b: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-b \
|
|
npm run build
|
|
|
|
build-c: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-c \
|
|
npm run build
|
|
|
|
build-d: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-d \
|
|
npm run build
|
|
|
|
build-e: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-e \
|
|
npm run build
|
|
|
|
build-f: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-f \
|
|
npm run build
|
|
|
|
build-g: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-g \
|
|
npm run build
|
|
|
|
build-h: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-h \
|
|
npm run build
|
|
|
|
build-i: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-i \
|
|
npm run build
|
|
|
|
build-j: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STAGE=test-j \
|
|
npm run build
|
|
|
|
auth-build:
|
|
rm -rf build_auth
|
|
|
|
REACT_APP_TYPE=auth-service \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_GOOGLE_CLIENT_ID=1022673777479-43mqb9lsqkpcr47umuvsoo0eemfpljf5.apps.googleusercontent.com \
|
|
REACT_APP_FACEBOOK_CLIENT_ID=798254931203361 \
|
|
BUILD_PATH=build_auth \
|
|
GENERATE_SOURCEMAP=false \
|
|
npx react-scripts build
|
|
|
|
npx gzipper --verbose build_auth
|
|
|
|
auth-production-build:
|
|
rm -rf build_auth
|
|
|
|
REACT_APP_TYPE=auth-service \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_GOOGLE_CLIENT_ID=1022673777479-43mqb9lsqkpcr47umuvsoo0eemfpljf5.apps.googleusercontent.com \
|
|
REACT_APP_FACEBOOK_CLIENT_ID=798254931203361 \
|
|
BUILD_PATH=build_auth \
|
|
GENERATE_SOURCEMAP=false \
|
|
npx react-scripts build
|
|
|
|
npx gzipper --verbose build_auth
|
|
|
|
facr-build: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
BUILD_PATH=build_facr \
|
|
npm run build
|
|
|
|
india-build: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
BUILD_PATH=build_india \
|
|
npm run build
|
|
|
|
lff-build: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
REACT_APP_CLIENT=lff \
|
|
BUILD_PATH=build_lff \
|
|
npm run build
|
|
|
|
.PHONY: build
|
|
|
|
prod: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
npm run build && cp -r .well-known build
|
|
|
|
# rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/wwwroot/
|
|
# rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/wwwroot/
|
|
# rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@137.74.33.74:/usr/local/www/ott/wwwroot/
|
|
|
|
preprod: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=preproduction \
|
|
REACT_APP_STAGE=test \
|
|
REACT_APP_CLIENT=insports \
|
|
REACT_APP_STRIPE_PK=pk_live_ANI76cBhSo69DZUxPmyRVIZW \
|
|
npm run build
|
|
|
|
india-prod: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_CLIENT=india \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
npm run build && cp -r .well-known build
|
|
|
|
facr-prod: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
REACT_APP_CLIENT=facr \
|
|
npm run build
|
|
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/facr-wwwroot/
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/facr-wwwroot/
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@137.74.33.74:/usr/local/www/ott/facr-wwwroot/
|
|
|
|
lff-prod: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
REACT_APP_CLIENT=lff \
|
|
npm run build
|
|
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/lff-wwwroot/
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/lff-wwwroot/
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott@137.74.33.74:/usr/local/www/ott/lff-wwwroot/
|
|
|
|
deploy-all: prod preprod facr-prod lff-prod
|
|
|
|
test:
|
|
npm test
|
|
|
|
.PHONY: test
|
|
|