public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13
#from:
#chef deploy resource callback
before_symlink do
rails_env = node["environment"]["framework_env"]
run ". /etc/profile; cd #{release_path} && bundle exec rails runner 'Sprocket.configurations.each { |c| Sprocket.new(c).install_script }' RAILS_ENV=#{rails_env}"
end
 
 
#to:
before_symlink do
rails_env = node["environment"]["framework_env"]
run "bash -l -c\" cd #{release_path} && bundle exec rails runner 'Sprocket.configurations.each { |c| Sprocket.new(c).install_script }' RAILS_ENV=#{rails_env}\""
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.