This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#=========================================================== | |
# 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...] | |
#=========================================================== | |
#=========================================================== |