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
require 'amqp' | |
module HiringThingEM | |
def self.start | |
if defined?(PhusionPassenger) | |
PhusionPassenger.on_event(:starting_worker_process) do |forked| | |
# for passenger, we need to avoid orphaned threads | |
if forked && EM.reactor_running? | |
EM.stop | |
end | |
Thread.new { |
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
# loads RVM into current shell for correct ruby and gem environment | |
source /etc/profile.d/rvm.sh | |
# source the .rvmrc file in the project | |
cd . | |
# instantiates an Xvfb session on display port 99 | |
Xvfb :99 -ac & | |
# environment variable to let firefox know where to run |
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
/* | |
This file is part of Ext JS 4.2 | |
Copyright (c) 2011-2013 Sencha Inc | |
Contact: http://www.sencha.com/contact | |
GNU General Public License Usage | |
This file may be used under the terms of the GNU General Public License version 3.0 as | |
published by the Free Software Foundation and appearing in the file LICENSE included in the |