-
Notifications
You must be signed in to change notification settings - Fork 26
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
Decidim Awesome : V0.8.x vs V0.9x issue with the Dockerfile and publish process/components #219
Comments
I don't think you can do a GET request agains that route (publish a component). Please share your Dockerfile and your application, I'm pretty sure this has nothing to do with this plugin. |
Hi @microstudi, @sylvie-mcn and I are working together in the same team. Just to be clear. The build was succesfully done, the Dockerfile is OK. And then, if @sylvie-mcn try to publish a process on the website, we have the routing error displayed above. Also, in the log of the developper tools we can see the rails active storage is missing. Even if I try to run this command in development mode I hope, this will help you understand better our issue. Any help will be appreciate. Thanks in advance. |
It seems that node packages aren't properly installed. Try to remove the node_modules folder and run |
@microstudi |
good to know, maybe we will have to change this. thanks for the explanation |
@microstudi |
Hi @microstudi Here is the trace I have for the execution of the bundle exec rails decidim_decidim_awesome:webpacker:install in the Dockerfile: Is it possible that all the errors are due to the npm and node versions not being fully compatible ? After the container is up, here is the trace for the execution of bin/rails asset:precompile --trace in the container: Is there an example of a Dockerfile that runs Decidim with awesome after executing the commands bundle exec rails decidim_decidim_awesome:webpacker:install and bin/rails asset:precompile ? Thank you. |
I think you need first make sure you are using the proper versions for npm and node (I think are 8 and 16) |
Hi, it looks like This seems to work: --- a/decidim/lib/tasks/decidim_tasks.rake
+++ b/decidim/lib/tasks/decidim_tasks.rake
@@ -21,7 +21,7 @@ namespace :decidim do
task compile: [:npm_install, :environment] do
Webpacker.with_node_env("production") do
ensure_log_goes_to_stdout do
- if Decidim.webpacker.commands.compile
+ if Webpacker::Compiler.new(Webpacker.instance).compile
# Successful compilation!
puts "SUCCESS"
Dir.chdir(File.join(__dir__, "../..")) do Can you confirm that this is equivalent ? If so, where is defined |
Same issue with the expected Node / NPM versions: root@7bbadbb443af:/home/decidim/decidim-app# node -v
v16.18.1
root@7bbadbb443af:/home/decidim/decidim-app# npm -v
8.19.2 |
Hello !
We work with Decidim V27.2 and we try to install Awesome.
We were able to adapt the Dockerfile, so that it can receive the precompile assets command, except that we have a problem when adding the bin/rails assets:precompile command in the install-2.sh file.
Even adding the precompilation command in install-2.sh or Dockerfile.
build stops, and returns error messages ERROR in ..... Can't resolve '@rails/activestorage' ..... plus assets (js, css, etc) it can't find not.
Also, we cannot release processes or features without having an error.
Will you publish a V0.9 release for decidim V26 and V27 soon?
Thank you !
To Reproduce
Decidim V0.27.2
Install Awesom V0.9 for Decidim V0.27
1.create un process
2.create a component
Publish all
I have this error for the process and this is the same for the component
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: