Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created July 15, 2014 13:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Epigene/1e45057269644c2be5ce to your computer and use it in GitHub Desktop.
Save Epigene/1e45057269644c2be5ce to your computer and use it in GitHub Desktop.
Spring installation cheatsheet
Installing Spring
On master branch:
1. $ bundle install
2. $ brew install direnv
3. edit shell config (~/.bashrc / .zshrc / config.fish), add at the very end:
eval "$(direnv hook bash)"
eval "$(direnv hook $0)" # for zsh
eval (direnv hook fish) # for fish
4. $ cd ~/project
5. $ direnv allow
6. $ echo "PATH_add bin" > .envrc
7. $ direnv allow #yup, again
7. $ echo 'export PATH=$PWD/bin:$PATH' > .envrc
8. $ bundle exec spring binstub --all
Further at https://github.com/zimbatm/direnv
Video tutorial at https://asciinema.org/a/4413
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment