Browse Source

update env with new wkhtmltopdf path

Olivier Massot 3 years ago
parent
commit
76d3460bf3
4 changed files with 20 additions and 0 deletions
  1. 5 0
      .env.preprod
  2. 5 0
      .env.prod
  3. 5 0
      .env.test
  4. 5 0
      readme.md

+ 5 - 0
.env.preprod

@@ -50,3 +50,8 @@ MERCURE_JWT_SECRET=NQEupdREijrfYvCmF2mnvZQFL9zLKDH9RCYter6tUWzjemPqzicffhc2fSf0y
 ###> bindfile populate buffer file
 BIND_FILE_BUFFER_FILE=var/subdomain.txt
 ###< bindfile populate buffer file
+
+###> knplabs/knp-snappy-bundle ###
+WKHTMLTOPDF_PATH=/usr/bin/wkhtmltopdf
+WKHTMLTOIMAGE_PATH=/usr/bin/wkhtmltoimage
+###< knplabs/knp-snappy-bundle ###

+ 5 - 0
.env.prod

@@ -52,3 +52,8 @@ MERCURE_JWT_SECRET=NQEupdREijrfYvCmF2mnvZQFL9zLKDH9RCYter6tUWzjemPqzicffhc2fSf0y
 ###> bindfile populate buffer file
 BIND_FILE_BUFFER_FILE=/env/subdomain.txt
 ###< bindfile populate buffer file
+
+###> knplabs/knp-snappy-bundle ###
+WKHTMLTOPDF_PATH=/usr/bin/wkhtmltopdf
+WKHTMLTOIMAGE_PATH=/usr/bin/wkhtmltoimage
+###< knplabs/knp-snappy-bundle ###

+ 5 - 0
.env.test

@@ -33,3 +33,8 @@ MERCURE_JWT_SECRET=NQEupdREijrfYvCmF2mnvZQFL9zLKDH9RCYter6tUWzjemPqzicffhc2fSf0y
 ###> bindfile populate buffer file
 BIND_FILE_BUFFER_FILE=var/subdomain.txt
 ###< bindfile populate buffer file
+
+###> knplabs/knp-snappy-bundle ###
+WKHTMLTOPDF_PATH=/usr/bin/wkhtmltopdf
+WKHTMLTOIMAGE_PATH=/usr/bin/wkhtmltoimage
+###< knplabs/knp-snappy-bundle ###

+ 5 - 0
readme.md

@@ -3,6 +3,11 @@
 [![pipeline status](http://gitlab.2iopenservice.com/opentalent/api/badges/master/pipeline.svg)](http://gitlab.2iopenservice.com/opentalent/api/-/commits/master)
 [![coverage report](http://gitlab.2iopenservice.com/opentalent/api/badges/master/coverage.svg)](http://gitlab.2iopenservice.com/opentalent/api/-/commits/master)
 
+## Dependencies
+
+    apt install wkhtmltopdf
+
+
 ## Démarrer le handler de messenger
 
 Pour consommer les signaux messengers, lancer :