= Simple Chat
Расширение позволяет покупателю со страницы магазина вести переписку с менеджером, а менеджер может отвечать из любого jabber клиента.
script/extension install git://github.com/pronix/spree-simple-livechat.git
config.gem 'easy-gtalk-bot'
config.gem "daemon-spawn", :lib => "daemon-spawn"
config.gem "daemons"
config.gem 'eventmachine', :version => '0.12.10'
config.gem "json"
config.gem "escape_utils", :version => "~> 0.1.6"
config.gem "faye"
stylesheet_link_tag "chat"
javascript_include_tag 'jquery'
javascript_include_tag 'chat'
javascript_include_tag 'faye.js', - файл js от faye, путь указывает на сервер faye
- Выполнить кипирование файлов rake spree:extensions:simple_livechat:update Будут скопированы файлы из public( стандартный таск) и файлы из script и lib
- Запустить сервер faye: rackup ./config/faye.ru -s thin -E production (сервер faye нужно обязательно запускать с -E production)
- запустить spree настроить в админке jabber аккаунту (авторизовав каждый друг у друга)
- запустить шлюз jabber - site RAILS_ENV=production ./script/daemon_chat.rb start