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.
201 lines
5.5 KiB
201 lines
5.5 KiB
install:
|
|
npm install
|
|
|
|
develop:
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_CLIENT=instat \
|
|
npm start
|
|
|
|
clean:
|
|
rm -rf build
|
|
|
|
build: clean
|
|
REACT_APP_TYPE=ott \
|
|
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 \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=a-staging \
|
|
npm run build
|
|
|
|
build-b: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=b-staging \
|
|
npm run build
|
|
|
|
build-c: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=c-staging \
|
|
npm run build
|
|
|
|
build-d: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=d-staging \
|
|
npm run build
|
|
|
|
build-e: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=e-staging \
|
|
npm run build
|
|
|
|
build-f: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=f-staging \
|
|
npm run build
|
|
|
|
build-g: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=g-staging \
|
|
npm run build
|
|
|
|
build-h: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=h-staging \
|
|
npm run build
|
|
|
|
build-i: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STAGE=i-staging \
|
|
npm run build
|
|
|
|
auth-build:
|
|
rm -rf build_auth
|
|
|
|
REACT_APP_TYPE=auth-service \
|
|
REACT_APP_ENV=staging \
|
|
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 \
|
|
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=staging \
|
|
REACT_APP_CLIENT=facr \
|
|
npm run build
|
|
|
|
lff-build: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=staging \
|
|
REACT_APP_CLIENT=lff \
|
|
npm run build
|
|
|
|
.PHONY: build
|
|
|
|
prod: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=production \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \
|
|
npm run 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@10.0.3.8:/usr/local/www/ott/wwwroot/
|
|
|
|
preprod: clean
|
|
REACT_APP_TYPE=ott \
|
|
REACT_APP_ENV=preproduction \
|
|
REACT_APP_CLIENT=instat \
|
|
REACT_APP_STRIPE_PK=pk_live_ANI76cBhSo69DZUxPmyRVIZW \
|
|
npm run build
|
|
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-test@10.0.3.8:/usr/local/www/ott-test/wwwroot/
|
|
|
|
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@10.0.3.8:/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@10.0.3.8:/usr/local/www/ott/lff-wwwroot/
|
|
|
|
deploy-all: prod preprod facr-prod lff-prod
|
|
|
|
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
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@10.0.3.8:/usr/local/www/ott-staging/a-wwwroot/
|
|
|
|
b-stage: build-b
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/b-wwwroot/
|
|
|
|
c-stage: build-c
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@10.0.3.8:/usr/local/www/ott-staging/c-wwwroot/
|
|
|
|
d-stage: build-d
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/d-wwwroot/
|
|
|
|
e-stage: build-e
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/e-wwwroot/
|
|
|
|
f-stage: build-f
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@10.0.3.8:/usr/local/www/ott-staging/f-wwwroot/
|
|
|
|
g-stage: build-g
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@10.0.3.8:/usr/local/www/ott-staging/g-wwwroot/
|
|
|
|
h-stage: build-h
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@10.0.3.8:/usr/local/www/ott-staging/h-wwwroot/
|
|
|
|
i-stage: build-i
|
|
rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@10.0.3.8:/usr/local/www/ott-staging/i-wwwroot/
|
|
|
|
test:
|
|
npm test
|
|
|
|
.PHONY: test
|
|
|