Skip to content

Instantly share code, notes, and snippets.

@hiroshi
Created April 11, 2013 07:32
Show Gist options
  • Save hiroshi/5361456 to your computer and use it in GitHub Desktop.
Save hiroshi/5361456 to your computer and use it in GitHub Desktop.
heroku/ruby で bower install する hack ref: http://qiita.com/items/a8a01d6d69b99a9bb162
task "assets:precompile" do
`(cd /tmp && curl -O https://heroku-buildpack-nodejs.s3.amazonaws.com/nodejs-0.8.19.tgz)`
`(mkdir -p bin/nodejs && cd bin/nodejs && tar xzf /tmp/nodejs-0.8.19.tgz)`
`(cd bin && ln -s nodejs/bin/node node)`
`node bin/nodejs/bin/npm install`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment