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
Huginn failing with error "Asset was not declared to be precompiled in production" #1201
Comments
Hi again! I solved it myself, and in retrospect I had the solution already as stated in the error message:
But
But I still don't understand why I needed to create assets.rb and add these strings? I couldn't find this in any documentation or tutorials, so why did I need to add this for my installation? Thanks in advance :) Regards, |
Hi @Androoz, the initializer should not be needed, additional static files are configured in config/environments/production.rb, did you set the |
I'm also little confused about the difference between "production" and "development" deployments? |
Yes, when you want to precompile the assets and run in the production environment The environments change the way rails behaves, |
Thanks @dsander! I will give |
Did that work for you @Androoz? |
Sorry for late reply @cantino and @dsander. It did work sort of, but I yet again got the CSS problem where the stylesheets won't load correctly. So I reverted back to my previous solution using a |
Thanks for letting us know! Please re-open if you have any issues. |
Hi there!
I'm new to Huginn and Ruby, and trying to get it everything up and running. But almost at the finish line, I've run into a problem when trying to edit and/or add an agent. I immediately get a Rails error stating:
See also attached screen grab.
I can't find any
config/initializers/assets.rb
and what I can see isconfig.assets.precompile += %w( ace.js )
already stated inconfig/environments/production.rb
together with the rest of javascripts?I have precompiled the assets manually by running
RAILS_ENV=production bundle exec rake assets:precompile
with success but I still get the same error when running Huginn...Can somebody please give me some ideas :) because I'm totally stuck...
Regards,
Anders
The text was updated successfully, but these errors were encountered: