summaryrefslogtreecommitdiff
path: root/docs/update.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/update.md')
-rw-r--r--docs/update.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/update.md b/docs/update.md
new file mode 100644
index 0000000..d11a3b6
--- /dev/null
+++ b/docs/update.md
@@ -0,0 +1,31 @@
+---
+redirect_from: "/Update"
+---
+
+# How to update AzerothCore to the latest stable version
+
+## 1) Update your local sources
+
+Move to your AzerothCore sources directory.
+
+- If you have your own fork of AzerothCore, you need to [sync it](Syncing-your-fork).
+
+- Otherwise, if you cloned AzerothCore directly from the main repo, you have to `git pull` to update it.
+
+## 2) Recompile
+
+Compile again your sources, this step is the same as the [Compilation step during Installation](Installation#3-compiling), but generally you can skip the CMake part unless you're adding new modules.
+
+For example, in Linux/Mac you just have to `cd build;` and run `make -j 8; make install`. Of course you can change the value of the `-j` paramether according to your CPU.
+
+## 3) Update the Database
+
+**If you are updating your production environment, BACKUP your databases BEFORE updating them!**
+
+You need to import the **new** sql update files (located at https://github.com/azerothcore/azerothcore-wotlk/tree/master/data/sql/updates) to each database.
+
+To automate this process you can use the db-assembler bash script `bash apps/db_assembler/db_assembler.sh`.
+
+If this is the first time you are using it [READ THIS FIRST](https://www.azerothcore.org/wiki/Database-Setup) and properly configure your `conf/config.sh` file.
+
+![](https://user-images.githubusercontent.com/75517/50738699-6912ee80-11d7-11e9-95ea-667baa0bda70.png)