-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathbootstrap.sh
More file actions
29 lines (28 loc) · 802 Bytes
/
bootstrap.sh
File metadata and controls
29 lines (28 loc) · 802 Bytes
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
#!/usr/bin/env bash
# Setting up default tools
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev curl git-core sqlite3 libsqlite3-dev
# Setting up rbenv to handle ruby versions
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source .bash_profile
# Configuring ruby to use v2.0.0
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build/
sudo ./install.sh
rbenv install 2.0.0-p247
# Installing bundler
rbenv rehash
rbenv global 2.0.0-p247
cd /vagrant
sudo apt-get install ruby-bundler
gem install bundler
rbenv rehash
# Installing Rails 4
bundle
sudo apt-get install rails
sudo apt-get install nodejs
gem update --system
gem install rails
rbenv rehash