Skip to content

Instantly share code, notes, and snippets.

@verbaleks
Created September 8, 2017 07:09
Show Gist options
  • Save verbaleks/f2e9da8c0722dd754c3aefdc924c6039 to your computer and use it in GitHub Desktop.
Save verbaleks/f2e9da8c0722dd754c3aefdc924c6039 to your computer and use it in GitHub Desktop.
Digitalocean
https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-puma
sudo apt-get update
--NGINX
sudo apt-get install curl git-core nginx -y
-- POSTGRES
sudo apt-get install postgresql postgresql-contrib
sudo -i -u postgres
psql
\du
\password
-- Enter your new password, and then enter it again to confirm it
\q
sudo apt-get install libpq-dev
--RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm requirements
rvm install ruby-2.4.1
--SSH
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub
--GEMS
add execjs, rubyracer
@verbaleks
Copy link
Author

Create 1GB swap memory
sudo dd if=/dev/zero of=/usr/mem.swap bs=1M count=512
Use the swap memory created in the first step
sudo mkswap /usr/mem.swap
sudo swapon /usr/mem.swap

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