Compare commits

...

5 Commits

Author SHA1 Message Date
vl 7f14069a5c replace api.auth to api-auth url 1 year ago
vl 92d08cb446 trigger prod 1 year ago
gitea aad3f06139 Update 'src/features/App/index.tsx' 1 year ago
gitea 52fdd9952f Update 'src/features/App/index.tsx' 1 year ago
Rakov cff05d1fb5 fix(prod): unavailbale text into prod 2 years ago
  1. 55
      .drone.yml
  2. 2
      README.md
  3. 11
      src/components/UnavailableText/index.tsx
  4. 4
      src/config/routes.tsx
  5. 6
      src/features/App/index.tsx
  6. 4
      src/features/AuthServiceApp/config/routes.tsx

@ -1059,4 +1059,57 @@ steps:
- aws s3 sync build_insport_live s3://insports-live --delete
- aws cloudfront create-invalidation --distribution-id E1LBC88VYP6XVB --paths "/*"
depends_on:
- make-insport-live
- make-insport-live
---
kind: pipeline
type: docker
name: deploy insports.tv
concurrency:
limit: 1
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/heads/insports.tv
steps:
- name: npm-install
image: node:16-alpine
environment:
REACT_APP_STRIPE_PK:
from_secret: REACT_APP_STRIPE_PK
commands:
- apk add --no-cache make
- npm install --legacy-peer-deps
- name: make-prod
image: node:16-alpine
environment:
REACT_APP_STRIPE_PK:
from_secret: REACT_APP_STRIPE_PK
commands:
- apk add --no-cache make
- make prod
depends_on:
- npm-install
- name: deploy-prod
image: amazon/aws-cli:latest
environment:
AWS_ACCESS_KEY_ID:
from_secret: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION:
from_secret: AWS_DEFAULT_REGION
AWS_MAX_ATTEMPTS: 10
commands:
- aws s3 sync build s3://insports-prod --delete
- aws cloudfront create-invalidation --distribution-id E3KY6BCU3AYHEW --paths "/*"
depends_on:
- make-prod

@ -6,7 +6,7 @@
Основная ветка - **develop**
Ответвляемся от нее
Ответвляемся от нее
git checkout -b 0000-task-name

@ -1,3 +1,4 @@
/* eslint-disable max-len */
import styled from 'styled-components/macro'
const Info = styled.p`
@ -8,12 +9,18 @@ const Info = styled.p`
font-size: 1.5rem;
`
const EmailLink = styled.a`
margin-left: 10px;
color: white;
`
export const UnavailableText = () => (
<Info>
The site is temporarily unavailable
{/* The site is temporarily unavailable
<br />
El sitio está temporalmente fuera de servicio
<br />
Сайт временно не доступен
Сайт временно не доступен */}
The inSports TV streaming platform is discontinued. For queries, contact us at <EmailLink href='mailto: support@insports.tv'>support@insports.tv</EmailLink>
</Info>
)

@ -5,12 +5,12 @@ import { ENV, isProduction } from './env'
export const APIS = {
preproduction: {
api: 'https://api.insports.tv',
auth: 'https://api.auth.insports.tv',
auth: 'https://api-auth.insports.tv',
auth_old: 'https://auth.insports.tv',
},
production: {
api: 'https://api.insports.tv',
auth: 'https://api.auth.insports.tv',
auth: 'https://api-auth.insports.tv',
auth_old: 'https://auth.insports.tv',
},
staging: {

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import {
Suspense,
useEffect,
@ -72,10 +73,7 @@ const OTTApp = () => (
<GlobalStores>
<Background>
<Suspense fallback={null}>
{isAvailable
&& (date.getTime() < new Date(startDate).getTime()
|| date.getTime() > new Date(stopDate).getTime())
? (<Main />) : (<UnavailableText />)}
<Main />
</Suspense>
</Background>
</GlobalStores>

@ -3,8 +3,8 @@ import { ENV, isProduction } from 'config/env'
import { readSelectedApi } from 'helpers/selectedApi'
const APIS = {
preproduction: 'https://api.auth.insports.tv',
production: 'https://api.auth.insports.tv',
preproduction: 'https://api-auth.insports.tv',
production: 'https://api-auth.insports.tv',
staging: 'https://api.auth.test.insports.tv',
}

Loading…
Cancel
Save