Last active
December 13, 2015 19:38
-
-
Save Peeja/4963777 to your computer and use it in GitHub Desktop.
Demonstration of environment variables in Rake. http://stackoverflow.com/questions/14903413/why-does-deployassetsprecompile-fail-with-the-error-uninitialized-constant-rai
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :foo do | |
sh 'echo $FOO' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
FOO=bar rake foo | |
rake FOO=bar foo | |
rake foo FOO=bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment