Skip to content
Snippets Groups Projects
Commit 4b70a78b authored by vmaubert's avatar vmaubert
Browse files

fix(version): corrige la version dans le serveur web

parent 26024296
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ services:
container_name: camino_ui_app
image: caminofr/camino-ui:${CAMINO_TAG}
environment:
APPLICATION_VERSION: ${CAMINO_TAG}
VIRTUAL_HOST: ${UI_HOST}
VIRTUAL_PORT: ${UI_PORT}
LETSENCRYPT_HOST: ${UI_HOST}
......
......@@ -14,7 +14,6 @@ const express = require('express')
const history = require('connect-history-api-fallback')
const compression = require('compression')
const { createProxyMiddleware } = require('http-proxy-middleware')
const { version } = require('./package.json')
const app = express()
const port = process.env.UI_PORT
......@@ -76,7 +75,7 @@ const sendVersion = context => {
context.writeHead(200, headers)
context.write(`id: ${Date.now()}\n`)
context.write(`event: version\n`)
context.write(`data: ${version}\n\n`)
context.write(`data: ${process.env.APPLICATION_VERSION}\n\n`)
}
app.get('/stream/version', async (req, res) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment