Skip to main content
Version: 1.1.x (Latest)

Update to development version

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.

Enable Maintenance Mode

cd /var/www/ctrlpanel
php artisan down

Switching to development branch

git checkout development

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!