-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't make it work with symfony on the same docker container #35
Comments
Can you try this action and copy/paste the result: <?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Process\Process;
use Symfony\Component\Routing\Annotation\Route;
class MjmlTestAction extends AbstractController
{
/**
* @Route("/mjml-test")
*/
public function __invoke()
{
$process = new Process([
$this->getParameter('kernel.project_dir') . '/node_modules/.bin/mjml',
'-V',
]);
$process->run();
die($process->getOutput() . $process->getErrorOutput());
}
} |
Or try to update the package to "dev-binary-renderer-exceptions" with : And then checks if the log: the error message will be more detailed |
I'm getting |
Can you execute mjml does not find |
|
Can you execute And the following code in the test action:
|
and the code => |
I'm going to do some tests to see how to handle that. Similar issue here: symfony/symfony#18847 |
Yes it's a similar issue. Thank you and let me know if there is a solution |
@fahde-sorgho do you have an example of Dockerfile? |
|
you need to install nodejs |
I don't really have any leads to fix that so I'm closing the issue. If anyone has a clue to correct this, I would reopen the issue. |
not sure if this problem relate here, I did not use docker but I bumped here when facing following problem. Mac Catalina 10.15.4 Problem
Check my config :
BUT
Yeah I know the Looking at the error, I figured the error happened here In search of solution : var_dump-ing it produces Try 2
But Try 3 Doing Last Resort (Worth to note that the problem above does NOT happen in CentOS 7) BinaryRenderer
Configuration
MJMLExtension
So now I could have full path of
Same issue : |
@mdkbdg Thank you for this detailed feedback! I will test that in detail at the end of the week. At first glance your approach with the |
I release a new version (3.5) with your implementation @mdkbdg |
wonderful! Many thanks @notFloran |
I'm working on a symfony project on docker container and i set up a Mailer service.I installed binaries on the container with
npm install mjml
. In the code :The thing is that when i request the function which send the mail via the docker container, there is no error but it does not send the mail. But when i start a server with
php -S adress -t public
and i request the function which send the mail, the mail is sent.In the log for the container there iscould not found mjml binary
but when i enter in the container the mjml command worksThe text was updated successfully, but these errors were encountered: