Last active
August 1, 2017 10:32
-
-
Save anhducbkhn/c91cd56d2ccc7b45fc3aca0b4bf108b3 to your computer and use it in GitHub Desktop.
Install nginx passenger on ubuntu 16.04
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
Create user deploy | |
sudo useradd deploy | |
sudo usermod -a -G sudo deploy | |
Login as deploy user | |
su deploy | |
Install RVM | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
curl -sSL https://get.rvm.io | bash | |
Install Ruby | |
source /home/deploy/.rvm/scripts/rvm | |
ruby install 2.4.1 | |
Install Passenger | |
gem install passenger --no-rdoc --no-ri | |
Install Curl | |
sudo apt-get install libcurl4-openssl-dev | |
Install Nginx | |
rvmsudo passenger-install-nginx-module | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment