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 |
apt-get install libjpeg-dev libpng-dev libtiff-dev libgif-dev
wget https://webp.googlecode.com/files/libwebp-0.4.0.tar.gz
tar xvzf libwebp-0.4.0.tar.gz
cd libwebp-0.4.0/
./configure
checkinstall
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar xvzf ImageMagick.tar.gz
cd ImageMagick-6.8.8-8
./configure
checkinstall
which convert
/usr/local/bin/convert
ps aux | grep unicorn | grep master
root 720 0.0 1.1 65728 11976 ? Sl Mar14 0:00 unicorn master -D -c /home/unicorn/unicorn.conf -E production
kill 720
/etc/init.d/nginx restart
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
wget http://sphinxsearch.com/files/sphinx-2.1.6-release.tar.gz
tar xvzf sphinx-2.1.6-release.tar.gz
cd sphinx-2.1.6-release
./configure
checkinstall
which searchd
/usr/local/bin/searchd