Jump to content

Managing Git from MTA Server (Request)


RickyP

Recommended Posts

Posted

Hello,

This is rather a question. Would anyone know if there's a way (and how) or even something already created to manage git from in-game server. Ex: Adding an ACL group with privileges to manage git (simply so you can 'git pull' from in-game if you have proper access).

And if we go into more complex, could it be any possible to even merge branches, pull, reverting, etc.

Thanks :)

  • 2 weeks later...
Posted

You can write a .sh script with all the git commands in them ('git pull', etc). From there, I guess you could create a server-side module that executes .sh scripts. I'm not entirely sure this is 100% possible though.

  • 1 month later...
Posted

Thinking about it, yes. This is fairly simple if you're hosting on a linux server. Simply create a php scripts or even an API for your own server which uses exec to run linux commands, create different calls to either commit, merge, pull, or do what ever you want. simply execute these linux based commands and you're fine.

On a windows server this'll be a lot harder, even impossible I guess. You'll have to go to great lengths to achieve that

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...