Skip to content

Instantly share code, notes, and snippets.

@ideaoforder
Last active June 28, 2016 14:18
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 ideaoforder/7fc1fc8b6b9a4df10b99138257343ae0 to your computer and use it in GitHub Desktop.
Save ideaoforder/7fc1fc8b6b9a4df10b99138257343ae0 to your computer and use it in GitHub Desktop.
OS X Dev ENV

This pretty much works, straight up: https://gorails.com/setup/osx/10.11-el-capitan

I like binstubs, since we don't have gemsets in rbenv https://github.com/ianheggie/rbenv-binstubs

In each app's directory, just do this once:

$ bundle install --binstubs .bundle/bin
$ rbenv rehash

You'll also definitely want rbenv-vars: https://github.com/rbenv/rbenv-vars

OpenSSL doesn't seem to work out of the box eventmachine/eventmachine#602 With openssl installed using Homebrew you can brew link openssl --force and then gem install will find the libs.

Nokogiri/XML This is also an issue--we want the xcode CLI tools anyway http://stackoverflow.com/questions/5528839/why-does-installing-nokogiri-on-mac-os-fail-with-libiconv-is-missing xcode-select --install

MySQL might not work out of the box either sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib

git_remote_branch isn't really maintained anymore, largely because it's better to just learn the git commands. For instance: git checkout -b experimental origin/experimental

If we're using login-less ssh:

cat ~/.ssh/id_rsa.pub # local machine
nano ~/.ssh/authorized_keys # server

Ngrok - https://ngrok.com/download / https://dashboard.ngrok.com/auth mv ~/Downloads/ngrok /usr/local/bin/ngrok

Heroku Toolbelt https://toolbelt.heroku.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment