The RFacebook Tunnel

When setting up facebook.yml, you probably noticed that there was some extra configuration for a tunnel. This allows you to develop directly from your own machine. All you need is an ssh login for any publicly accessible machine.

For example, lets say that you want www.mysite.com:8888 to forward to port 3000 on your laptop. If you have an ssh user account with the name foobar, the tunnel configuration would look like this:

tunnel:
	username: foobar
	host: www.mysite.com
	port: 8888
	local_port: 3000

Then, you can start the tunnel by typing the following from your Rails directory:

$ rake facebook:tunnel:start

That's it! Enjoy using your own machine to get those apps out there quicker.

NOTE: if you use something other than port 22 for SSH, then you can also specify "ssh_port" in the tunnel configuration.