-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use rvm requirements. * Fix rvm key. * Auto install ruby 2.3.0.
- Loading branch information
Showing
4 changed files
with
21 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
sudo add-apt-repository ppa:nginx/stable | ||
sudo apt-get update | ||
sudo apt-get install -y nginx | ||
nginx -v |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
echo "Install RVM" | ||
echo "" | ||
command curl -sSL https://rvm.io/mpapis.asc | gpg --import - | ||
\curl -L https://get.rvm.io | bash -s stable | ||
echo "[Done]" | ||
echo "" | ||
echo "" | ||
echo "---------------------------------------------------------------------------" | ||
echo "---------------------------------------------------------------------------" | ||
echo "" | ||
echo "Now you can use rvm command to install ruby" | ||
echo "" | ||
echo "source ~/.bashrc" | ||
echo "rvm pkg install readline openssl" | ||
echo "rvm install 2.3.0" | ||
echo "rvm use 2.3.0 --default" | ||
echo "" | ||
echo "" | ||
echo "" | ||
command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | ||
command curl -L https://get.rvm.io | bash -s stable | ||
command source /etc/profile.d/rvm.sh | ||
command source ~/.bashrc | ||
rvm requirements | ||
rvm install 2.3.0 | ||
rvm use 2.3.0 --default | ||
rvm -v | ||
ruby -v | ||
echo "--------------------------- Install Successed -----------------------------" |
This file contains 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