I want to recompile assets with data from database. My app will only have less than 10 users and I want to compile stylesheets in public/assets folder at the time of deployment.
In database, I have a table that stores user's color preference.
user_id | primary_bkg | secondary_bkg
1234 red blue
1235 yellow blue
config/environments/development.rb
config.assets.compile = true
The variables from user's color preference table will override the ones in application.css
Where can I trigger recompile assets and pull data from database?