ssh -nNT -R 8080:localhost:3000 myserver.com
Et voilà, myserver.com:8080 now points to localhost:3000. ssh -nNT -R 8080:localhost:3000 myserver.com
Et voilà, myserver.com:8080 now points to localhost:3000.$ show 3000 test
and get http://test.tekacs.com/ -> port 3000 on my computer using just SSH, assuming you have root access to the server (which you would need to set up forwarding on port 80 anyway...)
$ ssh -tR 1080:127.0.0.1:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80:127.0.0.1:1080 localhost"
being the functional line...
* HTTPS * Works without access to public-facing server. * Pretty URL * Eventually will support more stuff besides just port-forwarding :)
Servers are awesome. :-)
Showoff is a great idea though, best of luck!!
EDIT: Also, Showoff isn't suggesting it's doing something you couldn't do before. It just does it in a simpler & pain-free way.
You'll have to make sure to build your app to not make any assumptions about where it's running (ex: links to "http://localhost:3000/path), but you should be doing that anyway.
You have to have Apache setup (which, when developing a new project, you may likely not have even reached that point).
You can also save your current file by going to File > Save. But Ctrl/Cmd+S is easier (and probably what you use every day).
Showoff project is definitely cool, but instead of apache, nginx installs in one command and can easily proxy like this with about 10 lines of easily googled config using 1/10 of the resources on a simple prgmr account or the like.
Then again, I'm quite happy with a VPS setup since I get all of the extra benefits of having the server around...
EDIT: It's not a bash script. It's a Ruby wrapper.