[DiscordArchive] rebooting everyday to free up resources?
[DiscordArchive] rebooting everyday to free up resources?
Archived author: stevej • Posted: 2024-02-28T15:56:18.727000+00:00
Original source
That's a matter of practice. Just like compiling, maybe the first one doesn't work out, but then each time it will work out better until you master it.
Archived author: Honey • Posted: 2024-02-28T16:03:38.684000+00:00
Original source
Updating the server on Linux is 2 commands, plus 1 per module. You'll end up automating it with a script probably
Archived author: stevej • Posted: 2024-02-28T16:10:12.698000+00:00
Original source
When I started a script in SQL, I used Excel. I had the fields in it, and then I exported them to an editor like sublime text and created the SQL query. But always, with SQL scripts. Never editing the fields manually. In case I had to reverse them. It's easier to double-click the field and edit it, but if you wanted to go back, you would have to restore the entire database. So with a script, that becomes a little easier.
Archived author: stevej • Posted: 2024-02-28T16:12:16.022000+00:00
Original source
With this script, all modules were updated. But it was not added, and I ended up closing the pull request. But if the code is useful to anyone, you can see it here. https://github.com/azerothcore/azerothco...pull/16978
Archived author: stevej • Posted: 2024-02-28T16:13:46.493000+00:00
Original source
```bash
#!/bin/bash
set -euo pipefail
for i in ./*; do
if [[ -d "$i" ]]; then
cd $i || exit
git config pull.rebase false
git pull origin "$(git rev-parse --abbrev-ref HEAD)"
cd ..
fi
done
```
Archived author: stevej • Posted: 2024-02-28T16:14:13.589000+00:00
Original source
It is a bash script. On Windows, if you have git bash, you can run it.