[DiscordArchive] quick question? how often does the git source get updated? Once a week, a month, a few days?
[DiscordArchive] quick question? how often does the git source get updated? Once a week, a month, a few days?
Archived author: Rymercyble • Posted: 2023-02-07T20:14:25.002000+00:00
Original source
u can update multiple times per day if it doesnt bother u
Archived author: matrix1999 • Posted: 2023-02-07T20:14:59.968000+00:00
Original source
yeah I probably can since I am planning to have my server open to me and my kids
Archived author: mynameismeat • Posted: 2023-02-07T20:22:44.758000+00:00
Original source
if you know bash, something like `git status -uno | grep -q behind && git pull && make` is probably what you need
Archived author: mynameismeat • Posted: 2023-02-07T20:22:47.790000+00:00
Original source
idk I haven't tested it
Archived author: Rymercyble • Posted: 2023-02-07T20:23:42.482000+00:00
Original source
if there are no changes make will conclude in few sec so why even bother ¯\_(ツ)_/¯
Archived author: Revision • Posted: 2023-02-07T20:24:08.217000+00:00
Original source
`git rev-parse --short HEAD` to get local commit and `git ls-remote https://github.com/azerothcore/azerothcore-wotlk.git HEAD | awk '{ print substr($1,1,10) }'` to get remote
Archived author: Revision • Posted: 2023-02-07T20:24:13.683000+00:00
Original source
Compare them
Archived author: Revision • Posted: 2023-02-07T20:24:14.228000+00:00
Original source
done
Archived author: Foe • Posted: 2023-02-07T20:25:30.345000+00:00
Original source
Why deal with downtime, it seems he wants to automate it, so there's no point taking down the server to update if there's nothing to update
Archived author: Rymercyble • Posted: 2023-02-07T20:27:47.944000+00:00
Original source
it could be also done as that it will be restarted only if there are changes