Updating

This guide outlines the necessary steps for updating the Pteroca Control Panel, including file synchronization, dependency management, database migrations, cache management, and permissions.


Command Name Update (v0.6+): Starting with version 0.6, this command is now pteroca:system:update. The old name app:update-system is deprecated but still works until v1.0.0.

Version Requirement: This command is available starting from version 0.4.3. If you are on an earlier version, you'll need to follow the manual update instructions first before you can use this command.

Updating your PteroCA installation has never been easier. Simply run the following command inside your project directory:

# Recommended (v0.6+)
php bin/console pteroca:system:update

# Deprecated (still works until v1.0.0)
# php bin/console app:update-system

This command automates the most common update steps for you by:

  • Pulling the latest version of the code (if applicable).

  • Installing and updating dependencies (Composer, etc.).

  • Running any necessary database migrations.

  • Adjusting file permissions for your web server, if needed.

Optional: After running the update, you may also update the Pterodactyl plugin by following any specific instructions outlined in its documentation or by running the relevant update command.


Manual Update

If you need more control over the update process, you can manually update PteroCA. Choose the method that matches your installation approach:


Option A - Update via Git

This method is for installations that were set up using Git. If you installed from a GitHub release archive, use Option B instead.

Ensure that your local repository is synchronized with the latest versions while preserving any local changes.


Option B - Update from GitHub Releases

When to use this method:

This update method is for users who installed PteroCA using Option B from the Manual Installation guide, or when Git is not available on your server.

If you installed via Git (Option A), use the Git-based update method instead.

If you installed PteroCA from a GitHub release archive (without Git), follow these steps to update to the latest version:

  1. Visit the releases page: Navigate to https://github.com/PteroCA-Org/panel/releases and identify the latest stable version.

  2. Download the latest release: Download the .zip or .tar.gz archive under Assets for the version you want to update to.

  3. Upload to your server: Transfer the downloaded archive to your server using SFTP, SCP, or your preferred method.

  4. Backup your configuration (optional but recommended):

  5. Extract the new files: Navigate to your PteroCA directory and extract the archive, overwriting existing files:

  6. Verify configuration files: Ensure your .env file and other custom configuration files were not overwritten:

After extracting the files, proceed with the following shared update steps below.


Managing Project Dependencies

Regular updates to dependencies are critical for maintaining compatibility and performance. This includes removing development-only packages and optimizing the autoloader.


Database Migration

To align your database schema with the latest project updates, perform a migration using the framework's built-in tools.


Refreshing the Cache

Post-update, clearing the cache is essential to prevent old data from affecting the functionality of the updated system.


Adjusting File Permissions

Correct file permissions are essential for secure and uninterrupted operation of the server environment, especially after updates that might alter file structures.


Updating Pterodactyl Plugin (Optional)

If you have installed the PteroCA Plugin for Pterodactyl, you may want to update it as well.

Navigate to your Pterodactyl directory and simply run the following command to update the Composer package:

This command will update the PteroCA Plugin package and ensure that everything continues to work smoothly.


Need help? Join our Discord!

If you encounter any issues or need assistance, feel free to join our Discord community, where we’ll be happy to help! 🚀

🔗 Join here!

Last updated