Skip to content

Instantly share code, notes, and snippets.

@fraserxu
Created May 26, 2015 12:43
Show Gist options
  • Save fraserxu/bed299af6f34cbfeee59 to your computer and use it in GitHub Desktop.
Save fraserxu/bed299af6f34cbfeee59 to your computer and use it in GitHub Desktop.
setup ruby-china on DigitalOcean
  1. resove the locale issuelocale-gen en_US en_US.UTF-8 and sudo locale-gen UTF-8

  2. Permission denied while updating apt source with created user => use root user ssh root@MYIP and do it again and quit

  3. Need sudo to edit /etc/nginx/nginx.conf

  4. Install Git apt-get install git

  5. Install dependencies sudo apt-get install memcached mongodb redis-server imagemagick

  6. Certificate error with taobao mirror https://ruby.taobao.org => comment out taobao mirror because its's on DigitalOcean or just use http

  7. ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. => Install nodejs sudo apt-get install nodejs

  8. cp config/config.yml.default config.yml

  9. cp ./config/redis.yml.default ./config/redis.yml

  10. cp ./config/mongoid.yml.default ./config/mongoid.yml

  11. cp ./config/secrets.yml.default ./config/secrets.yml

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