This file contains hidden or 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
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(301, { | |
"Location": process.env.REDIRECT+req.url | |
}); | |
res.end(); | |
}).listen(process.env.PORT); |
This file contains hidden or 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
$(document).ready(function() { | |
$('body').on('click', '.set-to-now', function(e) { | |
e.preventDefault(); | |
var target_selector = $(this).attr('data-target'); | |
var year = $(target_selector+'_1i'); | |
var month = $(target_selector+'_2i'); | |
var day = $(target_selector+'_3i'); | |
var hour = $(target_selector+'_4i'); | |
var minute = $(target_selector+'_5i'); | |
// var current = [year, month, day, hour, minute].map(function(item) { |
This file contains hidden or 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
test: | |
override: | |
- bundle exec rspec spec | |
deployment: | |
acceptance: | |
branch: master | |
commands: | |
- ./script/heroku_deploy.sh <ACCEPTANCE_HEROKU_APP>: | |
timeout: 300 |
This file contains hidden or 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
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-protection-1.5.3/lib/rack/protection.rb:28 :in `block in new` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55 :in `instance_eval` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55 :in `initialize` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-protection-1.5.3/lib/rack/protection.rb:24 :in `new` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-protection-1.5.3/lib/rack/protection.rb:24 :in `new` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.3.241/lib/new_relic/agent/instrumentation/middleware_proxy.rb:28 :in `new` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:86 :in `block in use` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:134 :in `[]` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:134 :in `block in to_app` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:134 :in ` |
This file contains hidden or 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
module Platform | |
module Database | |
def connect(size=25) | |
config = ActiveRecord::Base.configurations[Rails.env] || Rails.application.config.database_configuration[Rails.env] | |
#config['reaping_frequency'] = ENV['DB_REAP_FREQ'] || 10 # seconds | |
config['pool'] = ENV['DB_POOL'] || size | |
puts "About to connect to AR with config: #{config}" | |
ActiveRecord::Base.establish_connection(config) | |
end |
This file contains hidden or 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
"exception": "#<Rack::Timeout::RequestTimeoutError: Request ran for longer than 4 seconds.>", | |
"backtrace": [ | |
"/app/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/renderer/abstract_renderer.rb:21:in `initialize'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/renderer/partial_renderer.rb:257:in `initialize'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/renderer/renderer.rb:47:in `new'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/renderer/renderer.rb:47:in `render_partial'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/helpers/rendering_helper.rb:35:in `render'", | |
"/app/app/views/layouts/application.html.erb:32:in `_app_views_layouts_application_html_erb__3764332814441953260_70061681889580'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/template.rb:145:in `block in render'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_ |
This file contains hidden or 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
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/renderer/abstract_renderer.rb:21 :in `initialize` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/renderer/partial_renderer.rb:257 :in `initialize` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/renderer/renderer.rb:47 :in `new` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/renderer/renderer.rb:47 :in `render_partial` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/helpers/rendering_helper.rb:35 :in `render` | |
[PROJECT_ROOT]/app/views/layouts/application.html.erb:32 :in `_app_views_layouts_application_html_erb__3764332814441953260_70061681889580` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/actionview-4.1.6/lib/action_view/template.rb:145 :in `block in render` | |
[PROJECT_ROOT]/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/notifications.rb:159 :in `block in instrument` | |
[PROJECT_ROOT]/vendor/bun |
This file contains hidden or 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
"exception": "#<Timeout::Error: execution expired>", | |
"backtrace": [ | |
"/app/vendor/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:185:in `lock'", | |
"/app/vendor/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:185:in `mon_enter'", | |
"/app/vendor/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:209:in `mon_synchronize'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:301:in `connected?'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:548:in `connected?'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.5/lib/active_record/connection_handling.rb:118:in `connected?'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.5/lib/active_record/railties/controller_runtime.rb:22:in `cleanup_view_runtime'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.5/lib/action_controller/metal/instrumentation.rb:40:in `render'", |
This file contains hidden or 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
"exception": "#<Rack::Timeout::RequestTimeoutError: Request ran for longer than 4 seconds.>", | |
"backtrace": [ | |
"/app/vendor/bundle/ruby/2.1.0/gems/pg-0.17.1/lib/pg/result.rb:10:in `each_row'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/pg-0.17.1/lib/pg/result.rb:10:in `each'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/pg-0.17.1/lib/pg/result.rb:10:in `to_a'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/pg-0.17.1/lib/pg/result.rb:10:in `values'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:148:in `exec_query'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/postgresql_adapter.rb:954:in `select'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_all'", | |
"/app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in s |
This file contains hidden or 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 File.open(ARGV.shift) | |
.read | |
.split("\n") | |
.map{ |line| | |
"<p>#{line.strip}</p>" | |
}.join("\n\n") |