mirror of
https://github.com/sitn/docsonmaps.git
synced 2026-08-26 00:14:15 +00:00
Read-only mirror of https://github.com/sitn/docsonmaps — Canton de Neuchâtel. Issues & pull requests at the source.
- TypeScript 53%
- HTML 39.2%
- CSS 3.8%
- JavaScript 3.5%
- Dockerfile 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| buildtools | ||
| src | ||
| .dockerignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| httpd.conf | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.js | ||
Getting started
npm i
npm start
Deploy
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:
$env:TAG="1.0.$(git rev-parse --short HEAD)";
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 pull
docker compose up -d