Managing your local server - bym-refitted/backyard-monsters-refitted GitHub Wiki

🛠️ Updating Local Server from Main GitHub Repository

In order to keep your local server up-to-date and in-sync with the main GitHub repository, there are two crucial components that you must be aware of: the server itself, and the database. This guide walks you through:

  • Pulling changes from the main GitHub repository
  • Managing database migrations

📦 Step 1: Pulling down the latest changes. Getting the latest changes from the GitHub repository should be as simple as running the following command in your terminal:

git pull

📦 Step 2: Updating the database. The database does not necessarily get updated in every update, so therefore it is useful to check server/src/database/migrations to see if there are any new migration files that were not there before; nevertheless, you can run the following command to update your database:

npm run migration:up