From d4df806c067db313a3dd075a4f5d1411bfda4a30 Mon Sep 17 00:00:00 2001 From: hfroger Date: Wed, 6 Mar 2024 11:24:56 +0000 Subject: [PATCH] fix: development image working after redeploy (#67) * fix: don't depends on voca gem * fix: remove unused credentials.enc.key --- config/credentials.yml.enc | 1 - config/initializers/vanilla.rb | 13 +++++++++++++ config/voca.yml | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) delete mode 100644 config/credentials.yml.enc create mode 100644 config/initializers/vanilla.rb diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc deleted file mode 100644 index 08329d5..0000000 --- a/config/credentials.yml.enc +++ /dev/null @@ -1 +0,0 @@ -YzGf8ZTpvNZLULTZ2ixW2k+1Oj/YthECEbzfkKdr0KDb6FcbM7mHJkgj1zSxWbE9qCfQ9AWWtc5Th4sAwPKToFXREd+Yg5pkEkt2jNKjRhIAiyeOqnGUcGFp9K5ty1PU523yxmvt3mW3SCeMzxF1g9rX3ouJZ0Mjc8e8HZXj/CONx4aqq6XK613CehfyhKz6fKMkRJwDZFSDFAl88IYkq7106fDteZ2Xvh4GNHAyxpQ1Y00xfIimq17+rzVmLJsAcq2xPMjKcR6YFSqktuUZbUfA96AUWNzebb7yK50zZgeP3v6NL4iMHVfSkvTEyBDRei8WXTqT8BBa86gHmmimC6z+aQV+p05OTCe8l7zxRhsQc4XfFVFU3cVEwoXxzAWOld8YboWEnLe7UFChUbn089xPtOZwBEqtlhSy--CknWZBbzZJmSXpU+--YzNyfi7Vz+2p5deCrhQ8Cw== \ No newline at end of file diff --git a/config/initializers/vanilla.rb b/config/initializers/vanilla.rb new file mode 100644 index 0000000..a5e0117 --- /dev/null +++ b/config/initializers/vanilla.rb @@ -0,0 +1,13 @@ +# Prepare vanilla decidim installation +if Gem.loaded_specs.has_key?('voca') + ::Decidim::Voca.configure do |config| + config.on(:before_setup_db) do + system("bundle exec rails decidim_decidim_awesome:install:migrations") + system("bundle exec rails decidim_term_customizer:install:migrations") + end + + config.on(:before_compile_assets) do + system("bundle exec rails decidim_decidim_awesome:webpacker:install") + end + end +end diff --git a/config/voca.yml b/config/voca.yml index 75f4a8e..76e1902 100644 --- a/config/voca.yml +++ b/config/voca.yml @@ -9,4 +9,4 @@ voca: git: "https://git.octree.ch/decidim/decidim-module-only_forms" branch: "release/0.27-stable" decidim-sitemaps: - git: "https://git.fpfis.tech.ec.europa.eu/future-of-europe/digit-cofe-libraries/digit-cofe-sitemap.git" \ No newline at end of file + git: "https://git.fpfis.tech.ec.europa.eu/future-of-europe/digit-cofe-libraries/digit-cofe-sitemap.git"