| sidebar_position | 2 |
|---|
:::danger Always backup your database and any code changes before updating! It's better to not need them, than to lose everything when you do. We've explained how to do that here.
Without a backup, you won't be able to roll back without losing all your data. :::
cd /var/www/ctrlpanel
php artisan downgit checkout developmentgit stash
git pull
chmod -R 755 /var/www/ctrlpanelCOMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloaderphp artisan migrate --seed --forcephp artisan view:clear
php artisan config:clear# If using NGINX or Apache (not on CentOS):
chown -R www-data:www-data /var/www/ctrlpanel/
# If using NGINX on CentOS:
chown -R nginx:nginx /var/www/ctrlpanel/
# If using Apache on CentOS
chown -R apache:apache /var/www/ctrlpanel/After every update, you should restart the queue worker to ensure that the new code is loaded in and used.
php artisan queue:restartphp artisan upIf you notice any bugs 馃悰 or would like something to be improved or added, let us know by making a GitHub Issue.
For any major security risk, create GitHub vulnerability report. Avoid discussing vulnerabilities in public chats, and also do not create reports on public trackers!