Created
November 8, 2019 15:56
-
-
Save cstrouse/03b21749fb77186b6f92ee9f998ade6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update | |
apt upgrade -y | |
apt install -y git gnupg2 | |
useradd -s /bin/bash -d /home/deploy -m -G sudo deploy | |
passwd deploy | |
# do the rest as deploy | |
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source /home/deploy/.rvm/scripts/rvm | |
rvm requirements | |
rvm install 2.2.1 --autolibs=disable | |
rvm use 2.2.1 --default | |
gem install bundler -v 1.17.3 | |
git clone git://project_url | |
cd project/ | |
sudo apt install libcurl4-openssl-dev libmysqlclient-dev | |
bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment