ULX

Author Topic: Remote file administration with github?  (Read 2125 times)

0 Members and 3 Guests are viewing this topic.

Offline sirrfuchs

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Remote file administration with github?
« on: September 26, 2016, 06:40:58 PM »
Hey, not sure if this is a valid topic for this forum, but I assume since it's development related, it should be okay...


I need some help getting my garry's mod server onto a Private Github Repo, and make it to where any pushes on the github will change the server files.

I've had someone set this up before, but they haven't been on steam in over 9 months.

Any help appreciated, I tried googling, but no luck!
« Last Edit: September 26, 2016, 07:02:41 PM by sirrfuchs »

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Remote file administration with github?
« Reply #1 on: September 27, 2016, 04:59:17 AM »
You need to use Webhooks. They're similar to githooks, except they're for GitHub. You'll need a webserver to utilize them, so if you don't have one you'll either need to buy hosting or set up a webserver on your Garry's Mod server (assuming you're running a VPS/VDS). I don't have much time right now, but I'll try to update this post later today with more information.

Another approach is to use a Git repository on your server and then push any changes to the GitHub repo. This (IIRC) does not require a webserver and seems easier to me.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Remote file administration with github?
« Reply #2 on: September 30, 2016, 06:43:57 PM »
Another approach is to use a Git repository on your server and then push any changes to the GitHub repo. This (IIRC) does not require a webserver and seems easier to me.

I'm also curious as how to do this :O
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Remote file administration with github?
« Reply #3 on: September 30, 2016, 07:06:25 PM »
I'm also curious as how to do this :O
Quick search, maybe this'll do it for you?

Edit: Correction, this should do it.
bw81@ulysses-forums ~ % whoami
Homepage

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given