Skip to content

Instantly share code, notes, and snippets.

@listrophy
Created October 17, 2011 22:59
Show Gist options
  • Save listrophy/1294111 to your computer and use it in GitHub Desktop.
Save listrophy/1294111 to your computer and use it in GitHub Desktop.
Slug-compilation-time Asset Precompilation
// ...
// source pretty-printed
// some values elided/obscured since I'm not sure which ones are sensitive... though the one's remove are certainly not able to be keyed off of
foo = [
["DATABASE_URL","postgres://user:[email protected]/dbname"],
["SSH_CLIENT","10.194.1.1 12345 12346"],
["USER","xxxxxx"],
["MAIL","/var/mail/xxxxxx"],
["RAILS_GROUPS","assets"],
["SHLVL","1"],
["HOME","/app/"],
["PS1","\\[\\033[01;34m\\]\\w\\[\\033[00m\\] \\[\\033[01;32m\\]$ \\[\\033[00m\\]"],
["LOG_TOKEN","t.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],
["LOGNAME","xxxxxx"],
["_","/usr/bin/git-receive-pack"],
["RACK_ENV","production"],
["PATH","/tmp/build_xxxxxxxxxxxxx/vendor/bundle/ruby/1.9.1/bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:bin"],
["LANG","en_US.UTF-8"],
["SHELL","/bin/bash"],
["GEM_HOME","/tmp/build_xxxxxxxxxxxxx/vendor/bundle/ruby/1.9.1"],
["RAILS_ENV","production"],
["GEM_PATH",""],
["PWD","/tmp/build_xxxxxxxxxxxxx"],
["SSH_CONNECTION","10.194.1.2 12345 10.96.1.2 12346"],
["BUNDLE_BIN_PATH","/tmp/build_xxxxxxxxxxxxx/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/bin/bundle"],
["BUNDLE_GEMFILE","/tmp/build_xxxxxxxxxxxxx/Gemfile"],
["RUBYOPT","-I/tmp/build_xxxxxxxxxxxxx/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc/lib -rbundler/setup"],
["FACEBOOK_APP_ID","123456789123456"]
]
// ...
foo = <%= ENV.to_json %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment