Skip to content

Instantly share code, notes, and snippets.

View mechiland's full-sized avatar
🧘
What's Next?

Michael Chen mechiland

🧘
What's Next?
  • Hipacloud
View GitHub Profile
@mechiland
mechiland / README.txt
Created February 26, 2012 05:56 — forked from fpauser/README.txt
Rails, VLAD, RVM, SUDO
For a working sudo in a non-interactive ssh session:
1. Copy askpass to $HOME/bin/askpass & make it executeable (chmod +x $HOME/bin/askpass)
2. Change your deploy.rb to setup the SUDO_ASKPASS environment variable (see man sudo)
Credits: http://serverfault.com/questions/307366/error-deploying-app-with-vlad-running-a-sudo-command-to-ubuntu-server
@mechiland
mechiland / 0_instructions.txt
Created February 27, 2012 23:06 — forked from eric1234/0_instructions.txt
Using Sprockets 2 in Rails 3.0.x with CoffeeScript & SASS
UPDATE: Please see some of the forks for an updated version of this guide. I
myself have moved onto the Rails 3.1 betas to get the asset pipeline. But if
you want to stay on stable there are other folks who are keeping this guide
relevant despite the changes constantly occurring on Sprockets 2. The comments
on this gist will lead you to the right forks. :)
Some brief instructions on how to use Sprocket 2 in Rails to get CoffeeScript
powered JS and SASS powered CSS with YUI compression all via the magic of rack.
This stuff will be native in Rails 3.1 and the layout of the files on the