This repository has been archived by the owner on Aug 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup_dev_env.sh
58 lines (43 loc) · 2.03 KB
/
setup_dev_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
echo "Checking for SSH key, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
echo "Copying public key to clipboard. Paste it into your Github account ..."
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh
echo "Installing Homebrew, a good OS X package manager ..."
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)"
brew update
echo "Install git"
brew install git
echo "Installing Postgres, a good open source relational database ..."
brew install postgres --no-python
echo "Installing ack, a good way to search through files ..."
brew install ack
echo "Installing ImageMagick, good for cropping and re-sizing images ..."
brew install ghostscript imagemagick
#echo "Installing RVM (Ruby Version Manager) ..."
# curl -L get.rvm.io | bash -s stable
# echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
# source ~/.bash_profile
echo "Installing rbenv"
brew install rbenv
brew install ruby-build
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
echo "Installing ruby!"
rbenv install 2.0.0-p247
rbenv global 2.0.0-p247
echo "Disabling RI and RDOC by default"
echo 'gem: --no-ri --no-rdoc' >> ~/.gemrc
echo "Installing Bundler for managing Ruby libraries ..."
gem install bundler --no-rdoc --no-ri
echo "Installing Rails to write and run web applications ..."
gem install rails --no-rdoc --no-ri
echo "Installing the Heroku gem to interact with the http://heroku.com API ..."
gem install heroku --no-rdoc --no-ri
echo "Installing the Taps gem to push and pull SQL databases between development, staging, and production environments ..."
gem install taps --no-rdoc --no-ri
echo "Installing the pg gem to talk to Postgres databases ..."
env ARCHFLAGS="-arch x86_64" gem install pg --no-rdoc --no-ri
echo "Installing pow for serving apps. Symlink apps into ~/.pow to access with http://<appname>.dev"
curl get.pow.cx | sh