Skip to content

Instantly share code, notes, and snippets.

View jesperronn's full-sized avatar

Jesper Rønn-Jensen jesperronn

View GitHub Profile
@jesperronn
jesperronn / unicorn.rb
Created June 13, 2012 20:48 — forked from tobiashm/unicorn.rb
unicorn startup/management script (to work from capistrano)
# ------------------------------------------------------------------------------
# Sample rails 3 config
# ------------------------------------------------------------------------------
# Set your full path to application.
app_path = "/srv/www/xxx/current"
# Set unicorn options
worker_processes 2
preload_app true
@jesperronn
jesperronn / unicorn_example.sh
Created June 13, 2012 20:33 — forked from tualatrix/unicorn_example.sh
An example of unicorn init script for Ubuntu
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn
@jesperronn
jesperronn / env.rb
Created September 22, 2010 20:22 — forked from suhrawardi/env.rb
$: << File.expand_path(File.dirname(__FILE__) + "/../support")
#$DEBUG = true
$ROOT_PATH = File.expand_path(File.dirname(__FILE__))
require 'capybara'
require 'capybara/cucumber'
require 'spec'