Files
burkkyy 7b7330d9b4
Build and Push Docker Image / build (push) Successful in 1m16s
Changes to support build
2026-06-27 02:13:48 -07:00

1.3 KiB

calebburke.dev

Deploying

Production Environment (remote)

TODO

Test Production Build Locally

Files:

  1. Create a .env file in top level directory with the appropriate values.

    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

    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

    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