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.
60 lines
2.0 KiB
60 lines
2.0 KiB
install:
|
|
npm install
|
|
|
|
develop:
|
|
REACT_APP_CLIENT=instat npm start
|
|
|
|
clean:
|
|
rm -rf build
|
|
|
|
build: clean
|
|
REACT_APP_ENV=staging REACT_APP_CLIENT=instat npm run build
|
|
|
|
preproduction-build: clean
|
|
REACT_APP_ENV=preproduction REACT_APP_CLIENT=instat REACT_APP_STRIPE_PK=pk_live_ANI76cBhSo69DZUxPmyRVIZW npm run build
|
|
|
|
production-build: clean
|
|
REACT_APP_ENV=production REACT_APP_CLIENT=instat REACT_APP_STRIPE_PK=pk_live_ANI76cBhSo69DZUxPmyRVIZW npm run build
|
|
|
|
facr-build: clean
|
|
REACT_APP_ENV=staging REACT_APP_CLIENT=facr npm run build
|
|
|
|
facr-production-build: clean
|
|
REACT_APP_ENV=production REACT_APP_STRIPE_PK=pk_live_ANI76cBhSo69DZUxPmyRVIZW REACT_APP_CLIENT=facr npm run build
|
|
|
|
.PHONY: build
|
|
|
|
prod: production-build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/wwwroot/
|
|
rsync -zavP build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/wwwroot/
|
|
rsync -zavP build/ -e 'ssh -p 666' ott@bkup.instat.tv:/usr/local/www/ott/wwwroot/
|
|
|
|
preprod: preproduction-build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott-test@test.instat.tv:/usr/local/www/ott-test/wwwroot/
|
|
|
|
facr-prod: facr-production-build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott@de.instat.tv:/usr/local/www/ott/facr-wwwroot/
|
|
rsync -zavP build/ -e 'ssh -p 666' ott@fr.instat.tv:/usr/local/www/ott/facr-wwwroot/
|
|
|
|
stage: build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/wwwroot/
|
|
|
|
a-stage: build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/a-wwwroot/
|
|
|
|
b-stage: build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/b-wwwroot/
|
|
|
|
c-stage: build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/c-wwwroot/
|
|
|
|
d-stage: build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/d-wwwroot/
|
|
|
|
e-stage: build
|
|
rsync -zavP build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/e-wwwroot/
|
|
|
|
test:
|
|
npm test
|
|
|
|
.PHONY: test
|
|
|