#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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment