Skip to content

Instantly share code, notes, and snippets.

View patrick-fitzgerald's full-sized avatar

Patrick Fitzgerald patrick-fitzgerald

View GitHub Profile
### Keybase proof
I hereby claim:
* I am patrick-fitzgerald on github.
* I am pfitzgerald (https://keybase.io/pfitzgerald) on keybase.
* I have a public key whose fingerprint is CC93 AA06 47BC 4D62 282C 5109 98F5 753A D105 6DFE
To claim this, I am signing this object:
# The goal will be to ultimately make a Capistrano deploy script that does
# what meteor.sh is doing, but in parallel.
# This assumes you're using an AMI with Node, NPM, Meteor, Forever and
# optionally Meteorite installed
set :application, "YOUR_APP_NAME"
set :repository, "git@YOUR_GIT_REPO.git"
set :scm, :git
class ApplicationController < ActionController::Base
# ...
unless Rails.application.config.consider_all_requests_local
rescue_from Exception, with: lambda { |exception| render_error 500, exception }
rescue_from ActionController::RoutingError, ActionController::UnknownController, ::AbstractController::ActionNotFound, ActiveRecord::RecordNotFound, with: lambda { |exception| render_error 404, exception }
end
private
def render_error(status, exception)
#!/bin/bash
#install maven
cd /usr/local/lib
wget http://apache.raffsoftware.com//maven/binaries/apache-maven-2.2.1-bin.tar.gz
tar xzf apache-maven-2.2.1-bin.tar.gz
ln -sT apache-maven-2.2.1 apache-maven
export M2_HOME=/usr/local/lib/apache-maven
export PATH=$PATH:$M2_HOME/bin
@patrick-fitzgerald
patrick-fitzgerald / start.ini
Created October 25, 2010 05:47
Jetty start.ini
#===========================================================
# Jetty start.jar arguments
# Each line of this file is prepended to the command line
# arguments # of a call to:
# java -jar start.jar [arg...]
#===========================================================
#===========================================================