Update guide
This guide provides instructions on how to update your environment with latest changes from source code.
Pull latest changes
Pull the latest changes from the main branch to ensure your local environment is up to date with the latest source code.
sh
git pull origin mainUpdate dependencies
Update dependencies to ensure you have the latest versions required by the updated source code.
sh
pnpm installDatabase migrations
Run database migrations to update your local database schema to match the latest changes in the source code.
sh
pnpm db:migrate
# Shortcut for following commands:
pnpm db:system:migrate
pnpm db:foods:migrate
pnpm acl:syncTrigger jobs to re-sync schemas
Depending what changes have been pulled, you may need to trigger some background jobs to re-sync schemas.
This includes following jobs:
FeedbackSchemesSync- to re-sync feedback schemesSurveySchemesSync- to re-sync survey schemesLanguageTranslationsSync- to re-sync DB-based language translations (if any)