1

Essentially, I'm trying to build a web server on my home desktop.

However, I find that I am out and about quite often, so it would be nice to be able to use my laptop to edit the code on GitHub, push it to the cloned repository on my home computer, and restart the server with the changed code.

I'm building a node.js server, so all I have to do to run it is type git pull and then node app.js into the bash terminal.

I'm basically wondering if it is possible to use a different computer to execute those commands remotely.

One constraint is that although my desktop can install any software required, my laptop cannot due to a lack of administrator permissions (it's a school-issued laptop).
Also, I run windows 10 home, so enabling RDP is nearly impossible or laggy at best.

If possible, it would be nice to do the pushing to my desktop via the GitHub site. Is it possible?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250

1 Answers1

0

It would be nice to do the pushing to my desktop via the GitHub site.

All you can do "via the GitHub site" is declared a webhook on push event.
That webhook can send a push payload on any IP you want.

If your laptop can exposes a public IP (or has a secure tunnel to localhost) with a listener (like that npm listener), it can ben notified and pull from the GItHub repo whenever there is a push.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • My laptop can't expose a public IP for some reason, but my desktop can. Also, I can't install software on it. Would the webhook still work? – Rajan Saini Mar 28 '17 at 04:45
  • @RajanSaini the webhook needs a fixed IP to push the event to. So you need to check that first. – VonC Mar 28 '17 at 04:45