asset-pipeline

compileAssets failing on upgrading Grails application

孤者浪人 提交于 2021-02-11 14:46:20
问题 I have a Grails application running version 3.3. I recently upgraded to version 4.0.3. The way I typically upgrade, which I understand is probably not the best way, is to upgrade my environment to the new Grails version, then create a brand new Grails project (I'm using IntelliJ), and then slowly move my files over from the old project to the new project, fixing things as I find they don't work. I have everything moved over and the app works perfectly while running run-app inside IntelliJ.

My application.js won't work and application.css won't update in Rails

时光毁灭记忆、已成空白 提交于 2021-02-10 17:56:48
问题 I configured my application to work on Heroku, but I'm having a problem. In development mode, when I change a part of the CSS and refresh the browser, my CSS doesn't load. I checked the logs, and the application.css doesn't load. I need it to load every time in development mode. Also, my application.js stopped working and I dont know why. development.rb: # Do not compress assets config.assets.compress = false config.assets.precompile += %w( login.css ) # Expands the lines which load the

My application.js won't work and application.css won't update in Rails

て烟熏妆下的殇ゞ 提交于 2021-02-10 17:56:45
问题 I configured my application to work on Heroku, but I'm having a problem. In development mode, when I change a part of the CSS and refresh the browser, my CSS doesn't load. I checked the logs, and the application.css doesn't load. I need it to load every time in development mode. Also, my application.js stopped working and I dont know why. development.rb: # Do not compress assets config.assets.compress = false config.assets.precompile += %w( login.css ) # Expands the lines which load the

Rails precompile - all.js missing

萝らか妹 提交于 2021-01-27 18:11:56
问题 I am new to rails and using version 3.1.0 and trying to deploy to heroku. I have a very simple application that i have managed to get up and running on heroku after working my way through several issues. I used the command bundle exec rake assets:precompile to get heroku to load the assets for the application (i read that heroku requires this for version 3.1.0). The problem is that when i try to run the application, the server gives the error ActionController::RoutingError (No route matches

Why do I need to precompile Rails assets on app servers and not web servers only?

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-27 07:08:05
问题 I'm deploying a simple Rails app to this small ubuntu precise64 server setup : * 1 web server running nginx * 2 app servers running unicorn * 1 db server running postgresql My servers are provisionned with Puppet and I'm pushing the app with capistrano. My Capfile load 'deploy' # Uncomment if you are using Rails' asset pipeline load 'deploy/assets' load 'config/deploy' # remove this line to skip loading any of the default tasks The deploy.rb file is super simple # Execute "bundle install"

Rails - Asset is not present in asset pipeline when using image_tag

岁酱吖の 提交于 2020-08-22 09:52:43
问题 Goal: Using my rails app with static images in assets in production environemt Steps: I turned my rails app to production environment. Precompiled the assets with RAILS_ENV=production rails assets:precompile Set RAILS_SERVE_STATIC_FILES environemt variable to true to enable public file server (in production.rb - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? Added line config.serve_static_assets = true to /config/application.rb With this setup, I`ve started the