chrismccord/sync

View on GitHub
lib/generators/render_sync/templates/sync.ru

Summary

Maintainability
Test Coverage
# Run with: rackup sync.ru -E production
require "bundler/setup"
require "yaml"
require "faye"
require "render_sync"

Faye::WebSocket.load_adapter 'thin'

RenderSync.load_config(
  File.expand_path("../config/sync.yml", __FILE__),
  ENV["RAILS_ENV"] || "development"
)

run RenderSync.pubsub_app