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) |
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
| namespace :deploy do | |
| # To avoid having to add a password for sudo, visudo and add | |
| # deployusername ALL=(ALL) NOPASSWD: /etc/init.d/unicorn reload | |
| task :start do | |
| sudo "/etc/init.d/unicorn start" | |
| end | |
| task :stop do | |
| sudo "/etc/init.d/unicorn stop" |
NewerOlder