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
$ rails s | |
=> Booting WEBrick | |
=> Rails 3.1.4 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2012-09-26 13:54:51] INFO WEBrick 1.3.1 | |
[2012-09-26 13:54:51] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.7.0] | |
[2012-09-26 13:54:51] INFO WEBrick::HTTPServer#start: pid=52452 port=3000 | |
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
# production.rb | |
... | |
config.middleware.use Rack::Cache | |
# Deflater is inserted here so gzipped assets aren't cached | |
config.middleware.insert_before Rack::Cache, Rack::Deflater | |
config.middleware.insert_after(Rack::Cache, Rack::ReverseProxy) do | |
reverse_proxy_options :preserve_host => true | |
reverse_proxy '/blog', 'http://bighorse.net' |
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-09-26T04:40:05+00:00 app[web.1]: cache: [GET /blog] miss | |
2012-09-26T04:40:05+00:00 heroku[router]: GET tradingpo.st/blog dyno=web.1 queue=0 wait=0ms service=18401ms status=302 bytes=26 | |
2012-09-26T04:40:05+00:00 heroku[nginx]: 98.207.156.57 - - [26/Sep/2012:04:40:05 +0000] "GET /blog HTTP/1.1" 302 26 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20100101 Firefox/15.0.1" tradingpo.st | |
2012-09-26T04:40:05+00:00 app[web.1]: cache: [GET /blog?a195c160] miss | |
2012-09-26T04:40:05+00:00 heroku[router]: GET tradingpo.st/blog?a195c160 dyno=web.1 queue=0 wait=0ms service=332ms status=302 bytes=26 | |
2012-09-26T04:40:05+00:00 heroku[nginx]: 98.207.156.57 - - [26/Sep/2012:04:40:05 +0000] "GET /blog?a195c160 HTTP/1.1" 302 26 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20100101 Firefox/15.0.1" tradingpo.st | |
2012-09-26T04:40:06+00:00 app[web.1]: ** [NewRelic][09/26/12 04:40:06 +0000 49fc179e-7685-4468-a535-bcd4b3fc4158 (7)] INFO : Starting the worker thread in 7 after forking. | |
2012-09-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
$ heroku run bundle exec rake assets:precompile --trace | |
Running `bundle exec rake assets:precompile --trace` attached to terminal... up, run.1 | |
fatal: Not a git repository (or any of the parent directories): .git | |
** Invoke assets:precompile (first_time) | |
** Execute assets:precompile | |
/usr/local/bin/ruby /app/vendor/bundle/ruby/1.9.1/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace | |
fatal: Not a git repository (or any of the parent directories): .git | |
** Invoke assets:precompile:all (first_time) | |
** Execute assets:precompile:all | |
** Invoke assets:precompile:primary (first_time) |
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
$ git push production feature/simplex:master | |
Counting objects: 4, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (2/2), done. | |
Writing objects: 100% (2/2), 307 bytes, done. | |
Total 2 (delta 1), reused 0 (delta 0) | |
-----> Heroku receiving push | |
-----> Ruby/Rails app detected | |
-----> Installing dependencies using Bundler version 1.2.0.rc |
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-08-04T07:10:56+00:00 app[web.1]: Started GET "/" for 98.207.156.57 at 2012-08-04 07:10:56 +0000 | |
2012-08-04T07:10:57+00:00 app[web.1]: ** [Airbrake] Success: Net::HTTPOK | |
2012-08-04T07:10:57+00:00 app[web.1]: ** [Airbrake] Environment Info: [Ruby: 1.9.2] [Rails: 3.1.4] [Env: production] | |
2012-08-04T07:10:57+00:00 app[web.1]: ** [Airbrake] Response from Airbrake: | |
2012-08-04T07:10:57+00:00 app[web.1]: <notice> | |
2012-08-04T07:10:57+00:00 app[web.1]: <id>10eaf859-c327-bbc4-f215-37afae557b8f</id> | |
2012-08-04T07:10:57+00:00 app[web.1]: <url>http://airbrake.io/locate/10eaf859-c327-bbc4-f215-37afae557b8f</url> | |
2012-08-04T07:10:57+00:00 app[web.1]: </notice> | |
2012-08-04T07:10:57+00:00 app[web.1]: | |
2012-08-04T07:10:57+00:00 app[web.1]: ActionView::Template::Error (application.css isn't precompiled): |
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
ruby-1.9.2-p180 :004 > AWS.config :access_key_id => ENV['AWS_SMTP_USERNAME'], :secret_access_key => ENV['AWS_SMTP_PASSWORD'] | |
=> <AWS::Core::Configuration> | |
ruby-1.9.2-p180 :005 > ses = AWS::SimpleEmailService.new | |
=> <AWS::SimpleEmailService> | |
ruby-1.9.2-p180 :006 > ses.send_email :subject => 'please work', :from => 'support@tradingpo.st', :to => 'kbighorse@gmail.com', :body_text => 'sample email text', :body_html => '<h1>sample email</h1>' | |
AWS::SimpleEmailService::Errors::SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. | |
The Canonical String for this request should have been | |
'POST | |
/ |
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
$ bundle exec rake spec --trace | |
(in /Users/kimball/surveyor) | |
** Invoke spec (first_time) | |
** Execute spec | |
/Users/kimball/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -S bundle exec rspec ./spec/controllers/surveyor_controller_spec.rb ./spec/helpers/surveyor_helper_spec.rb ./spec/lib/benchmark_spec.rb ./spec/lib/common_spec.rb ./spec/lib/parser_spec.rb ./spec/lib/redcap_parser_spec.rb ./spec/lib/unparser_spec.rb ./spec/models/answer_spec.rb ./spec/models/dependency_condition_spec.rb ./spec/models/dependency_spec.rb ./spec/models/question_group_spec.rb ./spec/models/question_spec.rb ./spec/models/response_set_spec.rb ./spec/models/response_spec.rb ./spec/models/survey_section_spec.rb ./spec/models/survey_spec.rb ./spec/models/validation_condition_spec.rb ./spec/models/validation_spec.rb | |
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in RSpec::Rails::SetupAndTeardownAdapter instead. (called from <top (required |
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 User | |
# ... | |
def async_do_work | |
Resque.enqueue SyftoWorkr, self.id | |
end | |
def do_work | |
puts "User #{self.id}, email #{self.email}" | |
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
require 'spec_helper' | |
require 'rake' | |
describe "Messages" do | |
before(:all) do | |
end | |
before(:each) do | |
load "#{Rails.root}/db/seeds.rb" | |
auth_token |