feat: add twig cache env var

This commit is contained in:
Matthieu Bessat 2020-08-05 14:50:52 +02:00
parent 7c6af664dd
commit 313ee7cfd4
2 changed files with 5 additions and 1 deletions

View file

@ -21,3 +21,5 @@ BASE_URL=http://srv.espacecondorcet.org:8001
WEB_UI_URL=http://localhost:8080
MOCK_EMAIL=false
DISABLE_TWIG_CACHE=false

View file

@ -33,7 +33,9 @@ const app: express.Application = express()
const host: string = process.env.HOST === undefined ? '127.0.0.1' : process.env.HOST
const port: number = 8001
if (process.env.DISABLE_TWIG_CACHE === 'true') {
twig.cache(false)
}
let main = async () => {
EmailService.init()