Updating from 1.1.x
This guide is for updates 1.1.x -> 1.1.x
If you want to upgrade from version 1.0.x to 1.1.x, please follow 1.0.x update guide.
If you want to upgrade from version 0.9.x to 1.1.x, please follow 0.9.x to 1.0.1 update guide first and then from 1.0.x one.
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.
Enable Maintenance Mode
cd /var/www/ctrlpanel
php artisan down
Pulling the New Files
git stash
git pull
chmod -R 755 /var/www/ctrlpanel
Update Dependencies
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
Updating the Database
php artisan migrate --seed --force
Clear Compiled Template Cache
php artisan view:clear
php artisan config:clear
Set Permissions
# 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/
Restarting Queue Workers
After every update, you should restart the queue worker to ensure that the new code is loaded in and used.
php artisan queue:restart
Disable Maintenance Mode
php artisan up
Disclaimer
If 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!