npm i
npm start
Don't forget to add to version.html
what you've done.
Create a .env.prod
file and set your vars like:
VITE_BASE_URL=/path/to/your/app
VITE_API_URL=your.backend.com/apps/health
For some reason, env.prod
has to be in src
directory and at the root of the project. Start by building and pushing:
docker compose build
docker compose push
Set the DOCKER_HOST environment variable and launch the build/run :
$env:DOCKER_HOST="<PATH_TO_REMOTE_HOST>"
docker compose up -d --build