OpsWorks isn\'t precompiling assets on deploy. I found this recipe in this thread but I think it\'s not complete though, or missing something because I get an error about
In AWS Opsworks I use the following recipe:
execute 'rake assets:precompile' do
cwd "#{node[:deploy_to]}/current"
user 'root'
command 'bundle exec rake assets:precompile'
environment 'RAILS_ENV' => node[:environment_variables][:RAILS_ENV]
end
I run this command as root because the instance needs the right permission to write to the release
path. Running the command as the deploy
user renders a permission denied error.