Sylius: [Doc] How to deploy Sylius Plus to Platform.sh ?

Created on 15 Jun 2020  路  2Comments  路  Source: Sylius/Sylius

Sylius version affected: Sylius Plus

Description
For the installation of wkhtmltopdf we have in the documentation:

dependencies:
    ...
    ruby:
        "wkhtmltopdf-binary": "> 0.12.5.1" # adding wkhtmltopdf as a one of dependencies

But wkhtmltopdf did an new release on June 10 and created version 1.12.6.
When deploying to Platform.sh we now have the error:

    W: /app/.global/gems/wkhtmltopdf-binary-0.12.6/bin/wkhtmltopdf:28:in `<top (required)>': undefined method `match?' for /deepin/:Regexp (NoMethodError)
    W: Did you mean?  match
    W:  from /app/.global/bin/wkhtmltopdf:22:in `load'
    W:  from /app/.global/bin/wkhtmltopdf:22:in `<main>'

Steps to reproduce
Deploy Sylius Plus to Platform.sh
Error occurred when execute

hooks:
    build: |
        ...
        wkhtmltopdf -V

Possible Solution
Maybe we should fix the version of wkhtmltopdf?

Documentation Potential Bug

Most helpful comment

Hello @oallain, your solution looks fine, but we should also consider how to handle a new version of wkhtmltopdf in future

All 2 comments

I fix it on my projet by using :

dependencies:
    nodejs:
        yarn: "*"
        gulp-cli: "*"
    ruby:
-        "wkhtmltopdf-binary": "> 0.12.5.1" # adding wkhtmltopdf as a one of dependencies
+        "wkhtmltopdf-binary": "0.12.5.1" # adding wkhtmltopdf as a one of dependencies

But I don't know if it's the best way to do it.

Hello @oallain, your solution looks fine, but we should also consider how to handle a new version of wkhtmltopdf in future

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefandoorn picture stefandoorn  路  3Comments

inssein picture inssein  路  3Comments

ping86 picture ping86  路  3Comments

xleliberty picture xleliberty  路  3Comments

igormukhingmailcom picture igormukhingmailcom  路  3Comments