Updating
caution
This guide is for updates 1.0.0 -> 1.0.X
If you want to upgrade from version 0.9.X to 1.0.1, use 1.0 docs (dropdown menu on the top right)
Enable Maintenance Mode
cd /var/www/ctrlpanel
sudo php artisan down
Pulling the New Files
sudo git stash
sudo git pull
sudo chmod -R 755 /var/www/ctrlpanel
Update Dependencies
COMPOSER_ALLOW_SUPERUSER=1 sudo composer install --no-dev --optimize-autoloader
Updating the Database
sudo php artisan migrate --seed --force
Clear Compiled Template Cache
sudo php artisan view:clear
sudo php artisan config:clear
Set Permissions
# If using NGINX or Apache (not on CentOS):
sudo chown -R www-data:www-data /var/www/ctrlpanel/
# If using NGINX on CentOS:
sudo chown -R nginx:nginx /var/www/ctrlpanel/
# If using Apache on CentOS
sudo 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.
sudo php artisan queue:restart
Disable Maintenance Mode
sudo 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!