Skip to content

Instantly share code, notes, and snippets.

@satchinjoshi
Created September 24, 2017 12:21
Show Gist options
  • Select an option

  • Save satchinjoshi/197641275ee5f26792d92fb687feaae5 to your computer and use it in GitHub Desktop.

Select an option

Save satchinjoshi/197641275ee5f26792d92fb687feaae5 to your computer and use it in GitHub Desktop.
echo "----------------- started -------------------"
sudo apt-get update
echo "----------------- installing dependencies -------------"
sudo apt-get 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 nodejs
echo "----------------- install ruby ---------------------"
cd
wget http://ftp.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz
tar -xzvf ruby-2.4.1.tar.gz
cd ruby-2.4.1/
./configure
make
sudo make install
ruby -v
echo "---------------- install bundler ----------------------"
gem install bundler
echo "---------------- install nginx ---------------------"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
sudo apt-get install -y apt-transport-https ca-certificates
# Add Passenger APT repository
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger xenial main > /etc/apt/sources.list.d/passenger.list'
sudo apt-get update
# Install Passenger & Nginx
sudo apt-get install -y nginx-extras passenger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment