• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tool] MV_Autodeploy - Use git to your advantage to auto-update your sa-mp server
#1
Information



So this is a mix of files/release that will make your developing easier (well, in my opinion). By doing one git command your server will update automaticly on your vps/dedicated server.?

Just the fact that you don't need to upload new .amx every time and need to edit your /updates command ... or like people saying "what's new?"?



This is all not needed anymore!



It works like this; you push your update to your remote, bitbucket will send info to your vps saying the script is updated, your vps will update the gamemode files, your database will get updated and later your server will check if there's a new commit hash than before. If yes, the samp server will automaticly update/restart



Functions



Code:
OnServerUpdateDetected(id, hash[], shorthash[], message[])

OnUpcomingUpdateDetected(updateid, hash[], shorthash[], message[])

OnServerIssueCreated(issueid, title[], priority[], kind[])

OnServerIssueStatusChange(issueid, title[], oldstatus[], newstatus[])

OnServerTagCreated(updateid, linkedtohash[], tagname[])



MV_AutoDeployInit(MySQL:sqlCon)

MV_AutoDeployExit()

MV_GetServerVersion()



Installation



Code on github



[Image: 68747470733a2f2f7075752e73682f774b3873752e6a7067]



Copied from original samp forums
[Image: GitHub-michaelbelgium-000000.svg?style=for-the-badge]

  Reply
#2
Nice! i'll try it
  Reply


Forum Jump: