Skip to content

Instantly share code, notes, and snippets.

@g-ilham
Last active August 29, 2015 14:07
Show Gist options
  • Save g-ilham/fc1e55cb2892fbcd940a to your computer and use it in GitHub Desktop.
Save g-ilham/fc1e55cb2892fbcd940a to your computer and use it in GitHub Desktop.
deploy to a VPS
http://www.eq8.eu/blogs/4-installing-rbenv-on-ubuntu-machine
sudo nano /etc/default/locale
Откроется текстовый редактор, и надо чтоб редактируемый файл выглядел так:
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
LC_TYPE=en_US.UTF-8
================================================
But after that postgresql still refused to start. This is due the fact, that the postgresql installation process tried to create a cluster on installation time but because of the bad locales this wasn't done.
So we have to redo this step by executing:
#pg_createcluster 9.3 main --start
(9.3 is my version of postgresql)
After that step postgresql starts flawlessly via
#/etc/init.d/postgresql start
Hopefully this might help some people.
========================================
Seems you still have not added 'rbenv' to the load path:
# ~/.bash_profile:
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
==================
added ruby build
https://github.com/sstephenson/rbenv#installing-ruby-versions
Step 5
https://github.com/sstephenson/ruby-build#readme
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment