Skip to content

Instantly share code, notes, and snippets.

@the-teacher
Last active August 29, 2015 13:57
Show Gist options
  • Save the-teacher/9563719 to your computer and use it in GitHub Desktop.
Save the-teacher/9563719 to your computer and use it in GitHub Desktop.
Digital ocean - Ubuntu Rails
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
@the-teacher
Copy link
Author

/etc/init.d/nginx restart

@the-teacher
Copy link
Author

set BASH SHELL for user rails

chsh -s /bin/bash

echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment