Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

application_rails precompile_assets doesn't respect application owner #95

Open
matteeyah opened this issue Aug 17, 2018 · 1 comment
Open

Comments

@matteeyah
Copy link

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
Copy link
Author

matteeyah commented Aug 17, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant