public
Rubygem
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 !
name age message
file .gitignore Loading commit data...
file README.rdoc Fri Jun 20 06:15:38 -0700 2008 made appjour guess ports from within a rails app [lachie]
file Rakefile
file appjour.gemspec Tue Jun 17 18:11:25 -0700 2008 bumped version to get gem to build [lachie]
directory bin/ Tue Jun 17 05:03:31 -0700 2008 tweaked help text, still not working [lachie]
directory lib/

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