Open matteeyah opened 6 years ago
A workaround is to add a ruby_execute
resource after the application_rails
resource and precompile the assets "manually":
ruby_execute 'precompile_assets' do
user 'application-owner'
command ['rake', 'assets:precompile']
end
The
application_rails
precompile_assets
attribute doesn't respect the application owner and tries to run as the chef user. It should run as the application owner.