From 3df489160ae1493c505b6d2065ebdbdb4acbf66b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 16 May 2022 15:36:24 +0200 Subject: [PATCH] Fix missing graphql-ws --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 0585b26..a6e0cf8 100755 --- a/scripts/install +++ b/scripts/install @@ -192,6 +192,7 @@ pushd "$final_path/live" bundle install ynh_exec_warn_less ynh_exec_as $app env RAILS_ENV=production RACK_ENV=production $ynh_ruby_load_path bin/rails db:migrate ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn add rails-ujs + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn add graphql-ws ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean sed -i 's/require "decidim\/rails"/require "decidim\/rails"\nrequire "action_cable\/engine"/' config/application.rb diff --git a/scripts/upgrade b/scripts/upgrade index 02aacd1..87d5a51 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -169,6 +169,7 @@ then ynh_exec_warn_less ynh_exec_as $app env RAILS_ENV=production RACK_ENV=production $ynh_ruby_load_path bin/rails decidim:upgrade ynh_exec_warn_less ynh_exec_as $app env RAILS_ENV=production RACK_ENV=production $ynh_ruby_load_path bin/rails db:migrate ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn add rails-ujs + ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn add graphql-ws ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn cache clean ynh_exec_warn_less ynh_exec_as $app env RAILS_ENV=production RACK_ENV=production $ynh_ruby_load_path bin/rails assets:precompile