Let’s say you’ve started a new CFML app project in your
You’re in Terminal (or Cygwin on windows) and have a version of Ruby / RubyGems installed on your system.
On Mac OS X and most Linux distributions, Ruby / RubyGems is already installed.
For Windows Ruby Installations, you can follow this guide on Forwardhq.com
Assuming you’ve done all that, however…
You’ve already defined a Railo CFML version for your project with cfenv of course… 😉
But you have a problem that has came up…
You would LOVE to send your boss and colleague a link to your LOCAL codebase as it exists right now to show them.
If you send them your current URL at http://localhost:8888/my_awesome_file.cfm they will get nothing but nothing.
So… that’s where Forward comes in.
Open up another Terminal Window / Tab or Console screen.
Install Forward with RubyGems
Getting Forward on a system is so easy with RubyGems.
$ gem install forward
sudo gem install forward if you need permissions.
Now that it’s installed, you can use it to give your colleagues web access to your working directory.
Make sure you’re in your project directory.
$ cd ~/Projects/my_cfml_project $ forward 8888 Forwarding port 8888 to [https://yourcompany.fwd.wf] Ctrl-C to stop forwarding
It’s even under an SSL, awesome right?
I think it is so awesome that there are niche services out there to make our lives as web developers even better than it already is.
Let me know if you use this technique on a project!