Skip to content

Instantly share code, notes, and snippets.

@jcave
jcave / Upgrading_RoR_DigitalOcean.md
Last active October 29, 2019 18:56
Upgrading Ruby using RVM on Digital Ocean's Ruby on Rails on Ubuntu 14.04 (Nginx + Unicorn) Image

Upgrading Ruby using RVM on Digital Ocean's Ruby on Rails on Ubuntu 14.04 (Nginx + Unicorn) Image

For those out there more advanced, this is probably not worth reading. However, if you’re fairly new to system admin on a Digital Ocean Ubuntu/Nginx/Unicorn/MySQL/Ruby on Rails setup, it may help you out. Recently, I needed to upgrade my ruby version from 2.0.0-p353 to version 2.2.0 on my Digital Ocean droplet. I felt like this would be fairly easy to do since RVM comes installed with the ‘Ruby on Rails on 14.04 (Unicorn + Nginx)’ image that Digital Ocean provides under the ‘Applications’ tab when creating a Droplet.

While it is true that installing a new version of ruby using RVM on your system is fairly easy, there’s a few locations that you MUST change in order to use the new ruby version. This is where if you are unfamiliar or new to this, you could spend a decent amount of time digging for these. Hopefully this will save you the time and make your upgrade fairly smooth.

Let’s get started!

Step 1: Tak

@jcave
jcave / DigitalOcean-BasicRailsSetup.md
Last active February 12, 2016 01:52
How to set up a DigitalOcean server with their 1-click Ubuntu/Rails/Ngnix/Unicorn/Mysql install

Basic Rails App on Digital Ocean / Ngnix / Unicorn

Most of this I got from the DigitalOcean file.

  1. Sign up for an account at digitalocean.com. Create a droplet using the pre-configed Ubuntu 12.10/Rails/Ngix/Unicorn option and using an ssh key if you set one up first. [An overview can be found here.] (https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2) If you don’t set up an SSH key, that's okay, DigitialOcean (DO) will send you one to your email.
  2. Once setup with an IP, point your domain or subdomain to the IP from wherever you are hosting as an A record. Log in using ssh root@ip.address.of.server. Enter your password if needed.
  3. Type passwd into the console to change the password of root to something you can remember.
  4. If you want add a new user so you don’t have to use root then type adduser [username] in the console. Feel free to fill out the Fu
@jcave
jcave / DigitalOcean-RailsSetup.md
Last active August 29, 2015 14:00
Getting Set Up on Digital Ocean 1-click rails - Unicorn / Nginx / Mysql

Rails App on Digital Ocean / Ngnix / Unicorn

So I'm somewhat of a newb when it comes to setting up servers to deploy my Rails apps on. I love building the apps, but have been spoiled with Heroku's simple git push setup. This has been great, but I'm at the point now that I need something a bit better then their 'Hobby' setup and I don't want to pay for the next step up. I also looked at this as a good learning experience since I also know very little about the linux world. I chose DigitalOcean.com to play with because they have a $5 a month plan that you pay hourly by; about $0.007 an hour. You can create/destroy as many virtual servers as you want so it's great to play on. Here's what I did to get started. I'm sure there's plenty of things here that may not be 'optimal' to folks that are much better at it then me, but in case you're new like me, I'm hoping these directions may help you a bit; or at least get you started.

I started by [reading this file](https://www.digitalocean.com/community/articles/how-