Skip to content

Instantly share code, notes, and snippets.

@saimonmoore
Created March 25, 2011 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saimonmoore/887182 to your computer and use it in GitHub Desktop.
Save saimonmoore/887182 to your computer and use it in GitHub Desktop.
#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