{"action":"closed","issue":{"url":"https://api.github.com/repos/sighmon/mjml-rails/issues/21","repository_url":"https://api.github.com/repos/sighmon/mjml-rails","labels_url":"https://api.github.com/repos/sighmon/mjml-rails/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/sighmon/mjml-rails/issues/21/comments","events_url":"https://api.github.com/repos/sighmon/mjml-rails/issues/21/events","html_url":"https://github.com/sighmon/mjml-rails/issues/21","id":256533893,"number":21,"title":"Cannot find MJML bin.","user":{"login":"Overload119","id":1012072,"avatar_url":"https://avatars1.githubusercontent.com/u/1012072?v=4","gravatar_id":"","url":"https://api.github.com/users/Overload119","html_url":"https://github.com/Overload119","followers_url":"https://api.github.com/users/Overload119/followers","following_url":"https://api.github.com/users/Overload119/following{/other_user}","gists_url":"https://api.github.com/users/Overload119/gists{/gist_id}","starred_url":"https://api.github.com/users/Overload119/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Overload119/subscriptions","organizations_url":"https://api.github.com/users/Overload119/orgs","repos_url":"https://api.github.com/users/Overload119/repos","events_url":"https://api.github.com/users/Overload119/events{/privacy}","received_events_url":"https://api.github.com/users/Overload119/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-10T19:33:38Z","updated_at":"2017-09-10T19:36:24Z","closed_at":"2017-09-10T19:36:24Z","author_association":"NONE","body":"Opening this task early while I continue to debug:\r\n\r\n```\r\n[7] pry(main)> reload!; UserMailer.confirmation_instructions(User.first, '123').deliver\r\nReloading...\r\n   (1.0ms)  SET NAMES utf8mb4 COLLATE utf8mb4_bin,  @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'),  @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483\r\n  User Load (0.4ms)  SELECT  `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1\r\n  Postcard Load (0.6ms)  SELECT  `postcards`.* FROM `postcards` WHERE `postcards`.`user_id` = 2 ORDER BY `postcards`.`id` DESC LIMIT 1\r\n  Rendering users/mailer/confirmation_instructions.mjml within layouts/mailer\r\n  Rendered users/mailer/confirmation_instructions.mjml within layouts/mailer (41.1ms)\r\n  Rendering users/mailer/confirmation_instructions.mjml within layouts/mailer\r\n  Rendered users/mailer/confirmation_instructions.mjml within layouts/mailer (8.7ms)\r\nUserMailer#confirmation_instructions: processed outbound mail in 137.1ms\r\nActionView::Template::Error: Couldn't find the MJML binary.. have you run $ npm install mjml?\r\nfrom /Users/amirsharif/.rvm/gems/ruby-2.4.1/gems/mjml-rails-2.4.3/lib/mjml/parser.rb:8:in `initialize'\r\n[8] pry(main)> Mjml::BIN\r\n=> nil\r\n[9] pry(main)> Mjml.discover_mjml_bin\r\n=> \"/Users/amirsharif/Projects/sapco/node_modules/.bin/mjml\"\r\n[10] pry(main)> reload!; UserMailer.confirmation_instructions(User.first, '123').deliver\r\nReloading...\r\n  User Load (0.9ms)  SELECT  `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1\r\n  Postcard Load (0.4ms)  SELECT  `postcards`.* FROM `postcards` WHERE `postcards`.`user_id` = 2 ORDER BY `postcards`.`id` DESC LIMIT 1\r\n  Rendering users/mailer/confirmation_instructions.mjml within layouts/mailer\r\n  Rendered users/mailer/confirmation_instructions.mjml within layouts/mailer (17.2ms)\r\n  Rendering users/mailer/confirmation_instructions.mjml within layouts/mailer\r\n  Rendered users/mailer/confirmation_instructions.mjml within layouts/mailer (16.3ms)\r\nUserMailer#confirmation_instructions: processed outbound mail in 102.1ms\r\nActionView::Template::Error: Couldn't find the MJML binary.. have you run $ npm install mjml?\r\nfrom /Users/amirsharif/.rvm/gems/ruby-2.4.1/gems/mjml-rails-2.4.3/lib/mjml/parser.rb:8:in `initialize'\r\n[11] pry(main)> Mjml::BIN\r\n=> nil\r\n[12] pry(main)> Mjml::BIN = Mjml.discover_mjml_bin\r\n(pry):12: warning: already initialized constant Mjml::BIN\r\n/Users/amirsharif/.rvm/gems/ruby-2.4.1/gems/mjml-rails-2.4.3/lib/mjml.rb:33: warning: previous definition of BIN was here\r\n=> \"/Users/amirsharif/Projects/sapco/node_modules/.bin/mjml\"\r\n```"}}
{"actor":{"display_login":"Overload119"}}