poise / application_ruby

Development repository for Opscode Cookbook application_ruby
Apache License 2.0
124 stars 153 forks source link

application_rails precompile_assets doesn't respect application owner #95

Open matteeyah opened 6 years ago

matteeyah commented 6 years ago

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.

matteeyah commented 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