I am deploying my ruby rails application with capistrano and have an development, staging and production environment. On my development env everything works fine.
Now I've pushed my updates to our staging env but no new application.css has been generated. I have deleted the old application.css manually on the staging env and tried my deployment again - without any luck. All I get now is an error from the web console, that application-xxxxx.cs could not be found. How can I generate a new application.css?
I have already tried it with cap staging deploy assets:precompile but without any luck.
In my staging.rb:
config.assets.compile = true
In my assets.rb:
Rails.application.config.assets.version = '1.1'
Rails.application.config.assets.precompile += %w( season.css)
Rails.application.config.assets.precompile += %w( dashboard.css)
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Capfile:
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rvm'
require 'capistrano/bundler'
require 'capistrano/rails/assets'
require 'capistrano/puma'
install_plugin Capistrano::Puma
install_plugin Capistrano::Puma::Daemon
require 'whenever/capistrano'
Addition:
When I run cap staging deploy it shows that precompile is executed but as stated above no new application.css file has been generated.
00:53 deploy:assets:precompile
01 ~/.rvm/bin/rvm default do bundle exec rake assets:precompile
✔ 01 deploy@3.121.33.42 5.630s
If any other information is needed, please let me know.