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
config.cache_classes = true | |
# Full error reports are disabled and caching is turned on | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true | |
# Disable Rails's static asset server (Apache or nginx will already do this) | |
# Enabled for Heroku Cedar stack | |
config.serve_static_assets = true | |
config.static_cache_control = "public, max-age=691200" #set to 8 days |
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
2012-04-25T16:04:31+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/mime_responds.rb:246:in `respond_with' | |
2012-04-25T16:04:31+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
2012-04-25T16:04:31+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' | |
2012-04-25T16:04:31+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/app/controllers/devise/sessions_controller.rb:9:in `new' | |
2012-04-25T16:04:31+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/callbacks.rb:17:in `process_action' | |
2012-04-25T16:04:31+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/base.rb:167:in `process_action' | |
2012-04-25T16:04:31+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/abstract_controller/callbacks.rb:18:in `bloc |
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
# Code is not reloaded between requests | |
config.cache_classes = true | |
# Full error reports are disabled and caching is turned on | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true | |
# Disable Rails's static asset server (Apache or nginx will already do this) | |
# Enabled for Heroku Cedar stack | |
config.serve_static_assets = true |
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
upstream unicorn { | |
server unix:/home/inside/sites/inside/shared/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name inside; | |
root /home/inside/sites/inside/current/public; |
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
upstream unicorn_projects { | |
server unix:/home/inside/sites/redmine/shared/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name redmine.inside; | |
root /home/inside/sites/redmine/current/public; |
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
puts "testing 2" |
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
# config file | |
window.App = | |
Models: {} | |
Collections: {} | |
Routers: {} | |
Views: {} | |
init: -> | |
@service_providers = new App.Collections.ServiceProvidersCollection() | |
@service_providers.fetch |
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 makes irb sluggish and randomly unresponsive | |
if fork | |
puts "Hello from parent process #{Process.pid}" | |
else | |
puts "Hello from child process #{Process.pid}" | |
# I thought the child process would exit automatically here? | |
end | |
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
@{ | |
@"ALABAMA": | |
@[@"ABBEVILLE",@"ADAMSVILLE",@"ADDISON",@"AKRON",@"ALABASTER",@"ALBERTVILLE",@"ALEXANDER CITY",@"ALEXANDRIA",@"ALICEVILLE",@"ALLGOOD",@"ALTOONA",@"ANDALUSIA",@"ANDERSON",@"ANNISTON",@"ARAB",@"ARDMORE",@"ARGO",@"ARITON",@"ARLEY",@"ASHFORD",@"ASHLAND",@"ASHVILLE",@"ATHENS",@"ATMORE",@"ATTALLA",@"AUBURN",@"AUTAUGAVILLE",@"AVON",@"BABBIE",@"BAILEYTON",@"BANKS",@"BAY MINETTE",@"BAYOU LA BATRE",@"BEAR CREEK",@"BEATRICE",@"BEAVERTON",@"BELK",@"BENTON",@"BERRY",@"BESSEMER",@"BILLINGSLEY",@"BIRMINGHAM",@"BLACK",@"BLOUNTSVILLE",@"BLUE MOUNTAIN",@"BLUE RIDGE",@"BLUE SPRINGS",@"BOAZ",@"BOLIGEE",@"BON AIR",@"BRANCHVILLE",@"BRANTLEY",@"BRENT",@"BREWTON",@"BRIDGEPORT",@"BRIGHTON",@"BRILLIANT",@"BROOKSIDE",@"BROOKWOOD",@"BRUNDIDGE",@"BUTLER",@"BYNUM",@"CAHABA HEIGHTS",@"CALERA",@"CAMDEN",@"CAMP HILL",@"CARBON HILL",@"CARDIFF",@"CAROLINA",@"CARROLLTON",@"CASTLEBERRY",@"CEDAR BLUFF",@"CENTER POINT",@"CENTRE",@"CENTREVILLE",@"CHALKVILLE",@"CHATOM",@"CHELSEA",@"CHEROKEE",@"CHICKASAW",@"CHILDERSBURG",@"CITRO |
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
// my-module.js | |
function privateFunc () { | |
console.log("Some convoluted logic.") | |
return 1 + 2 | |
} | |
export default function () { | |
console.log("Hey! I'm the public interface for this module") |