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 Paperclip | |
| # Converts ogg audio for Firefox | |
| class Ogg < Processor | |
| attr_accessor :whiny | |
| # Creates an Ogg from MP3 | |
| def make | |
| src = @file | |
| dst = Tempfile.new([@basename, '.ogg']) |
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
| upstream app { | |
| server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name www.app.com; | |
| rewrite ^/(.*) http://app.com/$1 permanent; | |
| } | |
| server { |
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
| # here's a quick recipe to run a performance test | |
| # with this method, you can: | |
| #-> easily choose the examples you want included from your existing specs | |
| #-> define the target number of total iterations you'd like, no limit | |
| #-> tune the transaction mix by specifying frequency metadata for each example | |
| #-> be happy that the transaction mix is fairly homogeneous over the test interval | |
| # (ideally you'd run this with acceptance (webrat/capybara) specs, but you | |
| # could employ this technique for any rspec test) |
OlderNewer