feat: add twig cache env var
This commit is contained in:
parent
7c6af664dd
commit
313ee7cfd4
2 changed files with 5 additions and 1 deletions
|
@ -21,3 +21,5 @@ BASE_URL=http://srv.espacecondorcet.org:8001
|
||||||
WEB_UI_URL=http://localhost:8080
|
WEB_UI_URL=http://localhost:8080
|
||||||
|
|
||||||
MOCK_EMAIL=false
|
MOCK_EMAIL=false
|
||||||
|
|
||||||
|
DISABLE_TWIG_CACHE=false
|
||||||
|
|
|
@ -33,7 +33,9 @@ const app: express.Application = express()
|
||||||
const host: string = process.env.HOST === undefined ? '127.0.0.1' : process.env.HOST
|
const host: string = process.env.HOST === undefined ? '127.0.0.1' : process.env.HOST
|
||||||
const port: number = 8001
|
const port: number = 8001
|
||||||
|
|
||||||
twig.cache(false)
|
if (process.env.DISABLE_TWIG_CACHE === 'true') {
|
||||||
|
twig.cache(false)
|
||||||
|
}
|
||||||
|
|
||||||
let main = async () => {
|
let main = async () => {
|
||||||
EmailService.init()
|
EmailService.init()
|
||||||
|
|
Loading…
Reference in a new issue