# Settingan .env
## Sportiv Landing
.env
### Staging
>tournamentUrl=https://api.quickplay.app/tournament
tournamentCreateUrl=https://api.quickplay.app/tournament/form/step-1
## Prod
tournamentUrl=https://tournament.sportiv.app
tournamentSeeAll=https://tournament.sportiv.app/tournament
tournamentCreateUrl=https://tournament.sportiv.app/tournament/form/step-1
## Sportiv CMS LANDING PAGE/CORE
local:
.env
VUE_APP_LANDING_PAGE="*landing-page localhost url*"
Staging
kita buat file .env
VUE_APP_LANDING_PAGE=https://quickplay.app
Prod
kita buat file .env
none
*purpose: env var for redirect from organization to landing-page*
## Tournament
local:
BASE_URL_API_TOURNAMENT=
BASE_URL_SPORTIV=
SRC_URL_SPORTIV=
.env
```
env: {
api: {
baseUrlTournament: process.env.BASE_URL_API_TOURNAMENT,
baseUrlSportiv: process.env.BASE_URL_SPORTIV,
srcUrlSportiv: process.env.SRC_URL_SPORTIV
}
}
```
## Variable
Staging
> BASE_URL_API_TOURNAMENT
> https://api.quickplay.app/tournament
> BASE_URL_SPORTIV
> https://api.quickplay.app/core/api/v1
> SRC_URL_SPORTIV=
> https://quickplay.app/core/
>
Production
> BASE_URL_API_TOURNAMENT
> https://api.sportiv.app/tournament
> BASE_URL_SPORTIV
> https://api.sportiv.app/core/api/v1
> SRC_URL_SPORTIV=
> https://sportiv.app/core/
*purpose of env vars:
BASE_URL_API_TOURNAMENT <for hit tournament api>
BASE_URL_SPORTIV <for hit sportiv api>
SRC_URL_SPORTIV <to get image baseurl>*
# **SPORTIV ORGANIZATION**
* **How to build**
`npm run build`
* **How to run**
* **Locally**
`npm run serve` in terminal
* **In Production**
1. Prepare SSH client to access production server ( Putty, cmd, atau Termius).
2. Use server settings below to access server production.

* username and pass asks Surya
3. Use command `docker exec -it vue bash`.
4. navigate folder `cd /mnt/data/html/spv-frontend-organization`
5. checkout to git branch for production
6. `npm install`
7. `npm run build`
* Configurations
* **All available ENV vars**
env var for redirect from Organization to Core
Staging:
VUE_APP_LANDING_PAGE=https://quickplay.app
Production:
VUE_APP_LANDING_PAGE=https://sportiv.app
* **What needs to be set in local and prod**
Just make sure the branch to release is the right branch