-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·42 lines (36 loc) · 1.97 KB
/
install.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
#!/bin/sh
echo "================ UPDATING SYSTEM... ================="
sudo apt-get update
echo "================ INSTALLING DEPENDENCIES... ================="
sudo apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev \
libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev \
libcurl4-openssl-dev python-software-properties libffi-dev imagemagick nginx \
postgresql-common postgresql postgresql-contrib libpq-dev
echo "================ INSTALLING RBENV... ================"
cd
export RBENV_ROOT="$HOME/.rbenv"
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
echo 'source $HOME/.bash_profile' >> ~/.bashrc
. $HOME/.bash_profile
echo "================ INSTALLING RUBY-BUILD... ================"
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo "================ INSTALLING RBENV-BINSTUBS... ================"
git clone git://github.com/ianheggie/rbenv-binstubs.git ~/.rbenv/plugins/rbenv-binstubs
echo "================ INSTALLING RBENV-GEM-REHASH ================"
git clone git://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
echo "================ INSTALLING RBENV-DEFAULT-GEMS ================"
git clone git://github.com/sstephenson/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems
echo "bundler" >> ~/.rbenv/default-gems
echo "================ INSTALLING RUBY v2.2.1... ================"
rbenv install 2.2.1
rbenv global 2.2.1
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc
echo "================ REMOVING NGINX DEFAULT CONFIGURATION ================"
sudo rm /etc/nginx/sites-enabled/default
echo "================ DOWNLOADING PUMA JUNGLE-TOOLS ================"
cd
wget https://raw.githubusercontent.com/puma/puma/master/tools/jungle/upstart/puma-manager.conf
wget https://raw.githubusercontent.com/puma/puma/master/tools/jungle/upstart/puma.conf
exec $SHELL