Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jasonpilz/c00d19670e72a0a38f96 to your computer and use it in GitHub Desktop.
Save jasonpilz/c00d19670e72a0a38f96 to your computer and use it in GitHub Desktop.

Now that we have ruby, node, and rails, it is time to get pg

    ssh root@your_ip_address_for_DO
    sudo apt-get update
    mkdir -p ~/.rbenv/plugins
    cd ~/.rbenv/plugins
    git clone https://github.com/sstephenson/rbenv-vars.git
    cd
    sudo apt-get install postgresql postgresql-contrib libpq-dev

Now we create a pg user

    sudo -u postgres createuser -s username

If you want to set up a password do the following

    sudo -u postgres psql
    \password username
    \q

I will demo hwo to the remaining process - It gets quite complicated

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