public
Description: Publish your web app in the ether using Bonjour.
Homepage:
Clone URL: git://github.com/lachie/appjour.git
Click here to lend your support to: appjour and make a donation at www.pledgie.com !
appjour / README.rdoc
100644 40 lines (25 sloc) 0.859 kb

Appjour

Publish your app in the ether using Bonjour.

Installation

  sudo gem install dnssd
  sudo gem install lachie-appjour --source=http://gems.github.com

Usage

  rincewind$ appjour leet_merb 4000
  Publishing leet_merb on 4000
  Announcing leet_merb...

  death$ appjour leet_merb
  # ... leet_merb pops up in web browser ...

  death$ appjour
  Searching for servers (3 seconds)
  found web app called 'leet_merb'

  # use the username if only the port is specified
  rincewind$ appjour 4001
  Publishing lachie on 4001
  Announcing lachie...

Port guessing

In the initialization phase of your app put:

  Appjour.publish('leet rails')

Appjour will endeavour to extract the port number from your app.

It can currently discover mongrel’s port.

TODO

  • make useable as Rails or Merb plugin for automatic publishing of apps