Skip to content

Instantly share code, notes, and snippets.

@noeticpenguin
Created January 12, 2012 21:22
Show Gist options
  • Save noeticpenguin/4c9b3721d9cc48e8c4c3 to your computer and use it in GitHub Desktop.
Save noeticpenguin/4c9b3721d9cc48e8c4c3 to your computer and use it in GitHub Desktop.
require 'rubygems'
require "bundler/setup"
require "control_tower"
require "sinatra"
require 'SinatraServer'
class AppDelegate
attr_accessor :window
def applicationDidFinishLaunching(a_notification)
# Insert code here to initialize your application
server = Server.new
Rack::Handle::ControlTower.run(app, {:port => 3001,
:host => '0.0.0.0',
:concurrent => true })
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment