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
| set :mongrel_base_port, 5000 | |
| set :mongrel_restart_delay, 30 | |
| set :mongrel_count, 2 | |
| namespace :mongrel do | |
| task :restart, :roles => [:app], :except => {:mongrel => false} do | |
| (mongrel_base_port..(mongrel_base_port+mongrel_count)).to_a.each do |port| | |
| sudo "/usr/bin/monit restart mongrel_#{monit_group}_#{port}" | |
| sleep mongrel_restart_delay | |
| 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
| /* • lpl modal */ | |
| /* lepilo modal dialog */ | |
| /* include low pro for jquery, then.... */ | |
| Model = $.klass({ | |
| initialize = function() { | |
| $('#cancel_modal').mouseup(function() { |
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
| delegate: function(rules) { | |
| return function(e) { | |
| var target = $(e.target); | |
| // first check the target itself | |
| for(var selector in rules){ | |
| if (target.is(selector)) | |
| return rules[selector].apply(this, $.makeArray(arguments)); | |
| } | |
| // then, jump up to parents | |
| for(var selector in rules){ |
NewerOlder