Showcase websites from your local machine easily
We want to make yourdomain.com
(could be subdomain like showcase.yourdomain.com
as well, of course) open whatever webapp (Rails
, Sinatra etc.
) is running on port 3000
on your development machine.
Create ~/bin/ssh_forward
with this contents:
#!/usr/bin/env bash
domain=yourdomain.com
echo "http://$domain" | pbcopy
python -mwebbrowser http://$domain &