Skip to content

Instantly share code, notes, and snippets.

@datt
Last active January 11, 2021 08:02
Show Gist options
  • Select an option

  • Save datt/d7648ba6e1fe67e3ef25c19e3407addb to your computer and use it in GitHub Desktop.

Select an option

Save datt/d7648ba6e1fe67e3ef25c19e3407addb to your computer and use it in GitHub Desktop.
rails setup commands on aws
sudo apt-get install git
sudo apt-get install nginx
sudo apt-get install nodejs
sudo apt-get install imagemagick
sudo apt-get install libpq-dev #postgres ext lib required
sudo apt update
sudo apt-get install libmagick++-dev #imagemagick dependency
# Installing Ruby using .rbenv
sudo apt install git curl autoconf bison build-essential \
libssl-dev libyaml-dev libreadline6-dev zlib1g-dev \
libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Installing Ruby using .rvm
sudo apt install curl g++ gcc autoconf automake bison libc6-dev \
libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool \
libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev \
libreadline-dev libssl-dev
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install ruby
rvm --default use ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment