best way to show people you work that you only have locally

Associate
Joined
10 Jan 2006
Posts
483
I am doing some freelance front end development work for a client - I am not the master on the git (another company responsible for merging etc) but I want to be able to let the people see what I have done and play with a version online.

Now I was going to clone the folder and push to heroku - but then I thought if I did that all my code would be public and I am at the risk that anyone could take it ( I know unlikely but worst case scenario it could happen)

Anyone know what the best thing to use is?
 
Associate
Joined
29 Sep 2005
Posts
818
Location
St Neots / Dublin
If you already have a public webserver, you can reverse proxy HTTP over SSH :

Code:
ssh -R 12345:127.0.0.1:80 me@publicwebserver

Then setup your existing webserver :

nginx:
Code:
location /site/ { proxy_pass http://127.0.0.1:12345/; }

Apache:
Code:
ProxyPass        /site/ http://127.0.0.1:12345/
ProxyPassReverse /site/ http://127.0.0.1:12345/

Then, accessing http://publicwebserver/site/ will forward to your machine on port 80.

You could also do it over a VPN connection if you have one.

Its the same type of thing ngrok does which BaJ suggested, but simpler and requires your own server already.
 
Back
Top Bottom