generated from alphane/template
This commit is contained in:
@@ -1,5 +1,60 @@
|
||||
# calebburke.dev
|
||||
|
||||
## Deploying
|
||||
|
||||
### Production Environment (remote)
|
||||
|
||||
TODO
|
||||
|
||||
### Test Production Build Locally
|
||||
|
||||
Files:
|
||||
|
||||
- [Dockerfile](./Dockerfile)
|
||||
- [docker-compose.yml](./docker-compose.yml)
|
||||
- Non-commited `.env` file
|
||||
|
||||
1. Create a `.env` file in top level directory with the appropriate values.
|
||||
|
||||
```bash
|
||||
HOST_PORT=8080
|
||||
API_PORT=8080
|
||||
|
||||
DB_HOST=db
|
||||
DB_USERNAME=calebburkedev
|
||||
DB_DATABASE=calebburkedev_production
|
||||
DB_PASSWORD=DevPwd99!
|
||||
DB_PORT=5432
|
||||
|
||||
DB_TRUST_SERVER_CERTIFICATE=true
|
||||
|
||||
VITE_APPLICATION_NAME="CALEB BURKE DEV"
|
||||
VITE_API_BASE_URL="http://localhost:8080"
|
||||
VITE_AUTH0_CLIENT_ID="TRlKzdNBynpo9tU1RSmnF0p8d3IEam4J"
|
||||
VITE_AUTH0_AUDIENCE="alphane-api"
|
||||
VITE_AUTH0_DOMAIN="https=//dev-7mdjzcgwirhocfwm.ca.auth0.com"
|
||||
```
|
||||
|
||||
2. (optional) If testing build arguments do
|
||||
|
||||
```bash
|
||||
docker compose build \
|
||||
--build-arg RELEASE_TAG=$(date +%Y.%m.%d) \
|
||||
--build-arg GIT_COMMIT_HASH=$(git rev-parse HEAD)
|
||||
```
|
||||
|
||||
and then in the next step drop the `--build` flag.
|
||||
|
||||
3. Build and boot the production image via
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
4. Go to <http://localhost:3000/> and log in.
|
||||
|
||||
5. Navigate around the app and do some stuff and see if it works.
|
||||
|
||||
## Resources
|
||||
|
||||
- <https://github.com/cotes2020/jekyll-theme-chirpy>
|
||||
|
||||
Reference in New Issue
Block a user