diff --git a/bin/bonjour.sh b/bin/bonjour.sh new file mode 100755 index 0000000..ea9cd76 --- /dev/null +++ b/bin/bonjour.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Serve this folder via bonjour to make it easier to test +# locally on other computers (Windows, iPad, etc) +# +# Prerequisites: +# +# Setup an anonymous Apache virtual host on an unused port. +# In this script I am using port 9292 +# +# Add somthing like the following to: +# +# file: /etc/apache2/extra/httpd-vhosts.conf +# +# +# ServerName avalanche +# DocumentRoot /Users/stephen/dev/test/avalanche-js-git +# PassengerEnabled off +# +# Options +Indexes +FollowSymLinks +MultiViews +Includes +# AllowOverride All +# Order allow,deny +# Allow from all +# DirectoryIndex avalanche2d.html +# +# +# +# Add this Listen directive to get apache to listen on 9292: +# +# file: /etc/apache2/httpd.conf +# +# Listen 9292 +# +# After starting on my compoter the page is served at this url: +# +# http://stepheneb.local.:9292/ +# + +dns-sd -R "Avalanche2D" _http._tcp . 9292 \ No newline at end of file