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.

Revisions

  1. verbaleks created this gist Sep 8, 2017.
    31 changes: 31 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    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