Skip to content

Instantly share code, notes, and snippets.

View mcavallo's full-sized avatar

Mariano Cavallo mcavallo

View GitHub Profile
@mcavallo
mcavallo / rails_do_nginx_unicorn_mysql.md
Last active August 29, 2015 14:22 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + RVM + Nginx + Unicorn + MySQL + Capistrano 3

WIP!!


Ubuntu 14.04 x64 (DigitalOcean) + Rails 4 + RVM + Nginx + Unicorn + MySQL + Capistrano 3

SSH into Root

$ ssh root@123.123.123.123
@mcavallo
mcavallo / course.rb
Last active December 29, 2015 01:18
class Course < ActiveRecord::Base
def image_or_default
image.empty? ? 'default.jpg' : image
end
end
@mcavallo
mcavallo / digitalocean.md
Created August 8, 2013 04:24 — forked from JamesDullaghan/digitalocean.md
Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh root@123.123.123.123

Add ssh fingerprint and enter password provided in email