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
| database: | |
| - cp mongoid.yml.example mongoid.yml | |
| services: | |
| - redis | |
| - mongodb | |
| - elasticsearch |
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
| class AjaxQueue | |
| @MAX = 40 | |
| constructor: () -> | |
| @requests = [] | |
| @current = 0 | |
| ajax: (opts) -> | |
| opts.complete = (jqXHR, textStatus) => | |
| @current -= 1 |
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
| # Run with: rackup faye.ru -s thin -E production | |
| # For executor-customer chat | |
| require "bundler/setup" | |
| require "faye" | |
| require 'redis' | |
| require 'redis/objects' | |
| Redis.current = Redis.new(:host => '127.0.0.1', :port => 6379) | |
| Faye::WebSocket.load_adapter('thin') |