Last active
August 29, 2015 13:57
-
-
Save the-teacher/9563719 to your computer and use it in GitHub Desktop.
Digital ocean - Ubuntu Rails
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
ssh root@146.185.xxx.xxx | |
ssh rails@146.185.xxx.xxx | |
mkdir -p ~/.ssh | |
cat ~/.ssh/id_rsa.pub | ssh root@146.185.xxx.xxx 'cat >> ~/.ssh/authorized_keys' | |
cat ~/.ssh/id_rsa.pub | ssh rails@146.185.xxx.xxx 'cat >> ~/.ssh/authorized_keys' | |
User: rails | |
$ which nginx | |
/usr/sbin/nginx | |
$ which mysql | |
/usr/bin/mysql | |
$ which nodejs -v | |
/usr/bin/nodejs | |
$ nodejs -v | |
v0.6.19 | |
$ which rvm | |
$ which psql | |
$ which convert | |
$ which searchd | |
$ which redis-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
set BASH SHELL for user rails
chsh -s /bin/bash
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc