Skip to content

Instantly share code, notes, and snippets.

@selfup
Last active December 19, 2015 03:45
Show Gist options
  • Save selfup/351e29d42591ce3c749f to your computer and use it in GitHub Desktop.
Save selfup/351e29d42591ce3c749f 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 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