Skip to content

Instantly share code, notes, and snippets.

View raffone's full-sized avatar

Raffaele Rasini raffone

View GitHub Profile
# unicorn_rails -c /var/www/public/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
worker_processes 2
APP_PATH = "/var/www/public"
working_directory APP_PATH
@raffone
raffone / unicorn
Last active December 21, 2015 01:39 — forked from mguterl/gist:308216
#!/bin/sh
set -u
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
RUBY=ruby-1.9.3-p448
APP_ROOT=/var/www/public
PID=$APP_ROOT/tmp/pids/unicorn.pid
@raffone
raffone / gist:6091448
Created July 26, 2013 19:12
Example of a responsive form grid with 3 columns on desktop, 2 on tablets, and 1 on smartphones with the Rapido Framework.
.example-form {
.form__group {
@include columns(4, $nth-omega: 3n, $media: desk);
@include columns(6, $nth-omega: 2n, $media: lap);
@include columns(12, $media: palm);
}
}