-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from YTVanced/dev
Testing API url from build args
- Loading branch information
Showing
7 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
node_modules | ||
.dockerignore | ||
.env | ||
Dockerfile | ||
.github | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
Based on the template from https://github.com/facebook/create-react-app | ||
|
||
Vanced Website Repo (https://vancedapp.com) | ||
Vanced Website Repo (https://vancedapp.com) | ||
|
||
## Developing | ||
|
||
### 1. Running | ||
``` | ||
npm start | ||
``` | ||
|
||
## Docker testing | ||
|
||
### 1. Building local image | ||
``` | ||
docker build --build-arg REACT_APP_VANCED_LATEST_API_URL=https://cors-anywhere.herokuapp.com/https://vancedapp.com/api/v1/latest.json -t vanced/website-v2:local . | ||
``` | ||
|
||
### 2. Running the container | ||
``` | ||
docker-compose up | ||
``` | ||
|
||
Or to run in detached mode | ||
|
||
``` | ||
docker-compose up -d | ||
``` | ||
|
||
### 3. Open the site | ||
Go to http://localhost:4001/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '3' | ||
services: | ||
backend: | ||
image: vanced/website-v2:local | ||
ports: | ||
- "4001:4001" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters