Skip to content

Instantly share code, notes, and snippets.

View apangeajwrubel's full-sized avatar

Jim Wrubel apangeajwrubel

View GitHub Profile
@apangeajwrubel
apangeajwrubel / gist:4438708
Last active December 10, 2015 13:08
Test failures on dbcharmer-horizontal
Unit Tests
Snippet:
ERROR (0.01649s) (11:00:09.365) 0002 can create a snippet with audio from text
Couldn't find Snippet with id=1564
School::shard_name
TODO: fix this test because previously we picked the LAST shard
FAIL (0.01305s) (11:00:08.666) 0001 uses a random shard if this customer doesn't have any other schools
Expected: "enrollments_shard_two"
@apangeajwrubel
apangeajwrubel / gist:4953849
Created February 14, 2013 16:11
our unicorn config
rails_env = ENV['RAILS_ENV'] || 'production'
preload_app true
# number of workers - makes sure this matches memory config
worker_processes Integer(ENV['UNICORN_WORKERS'] || 2)
# restart workers if request takes too long
timeout Integer(ENV['UNICORN_TIMEOUT'] || 25)
# Only allow reasonable backlog of requests per worker
module.exports = {
pivotal: {
TOKEN: 'TOKEN'
PID: 'PID',
},
sprintly: {
USER: "USER_EMAIL",
ID: 'PRODUCT_ID',
KEY: 'API_KEY'
},