Updating OpenGRC
Updating OpenGRC can be done manaully or using the update script (Linux only). The update process described below will update and configure all changes that have been pushed into production for OpenGRC. It will also update all dependencies, regardless of chanes to the codebase, allowing you to keep up with security patches.
Using the update script is highly recommended!
Automated Process (Linux Only)
From the installation path, simply run
./update.sh
For details on exactly what this does, refer to the Manual Pricess below.
Manual Process
In cases where automated update is not desired or possible, the following can be performed from the installation path. Note that this is the same process the updater script performs
-
Pull the latest code updates
git pull -
Update all PHP dependencies
composer update -
Update the database
php artisan migrate -
Build all the front-end dependencies
npm run build -
Set Permissions properly
./set_permissions -
Clear caches
php artisan cache:clear