diff --git a/panel/1.0/updating.md b/panel/1.0/updating.md index 0be1b400..426118ad 100644 --- a/panel/1.0/updating.md +++ b/panel/1.0/updating.md @@ -33,7 +33,7 @@ will also need to be using Composer v2. should see output similar to the output below. If you do not see at least PHP 7.4 you will need to upgrade by following our [PHP Upgrade Guide](/guides/php_upgrade.md) and then return to this documentation. -``` bash +``` vagrant@pterodactyl:~/app$ php -v PHP 8.0.1 (cli) (built: Jan 13 2021 08:22:35) ( NTS ) Copyright (c) The PHP Group @@ -49,6 +49,8 @@ self-upgrade of the Panel. This will download all of the necessary files and per in this upgrade documentation. ```bash +cd /var/www/pterodactyl + php artisan down php artisan p:self-upgrade php artisan up @@ -70,7 +72,9 @@ Whenever you are performing an update you should be sure to place your Panel int users from encountering unexpected errors and ensure everything can be updated before users encounter potentially new features. -``` bash +```bash +cd /var/www/pterodactyl + php artisan down ``` @@ -79,14 +83,14 @@ The first step in the update process is to download the new panel files from Git the release archive for the most recent version of Pterodactyl, save it in the current directory and will automatically unpack the archive into your current folder. -``` bash +```bash curl -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv ``` Once all of the files are downloaded we need to set the correct permissions on the cache and storage directories to avoid any webserver related errors. -``` bash +```bash chmod -R 755 storage/* bootstrap/cache ``` @@ -94,7 +98,7 @@ chmod -R 755 storage/* bootstrap/cache After you've downloaded all of the new files you will need to upgrade the core components of the panel. To do this, simply run the commands below and follow any prompts. -``` bash +```bash composer install --no-dev --optimize-autoloader ``` @@ -102,7 +106,7 @@ composer install --no-dev --optimize-autoloader You'll also want to clear the compiled template cache to ensure that new and modified templates show up correctly for users. -``` bash +```bash php artisan view:clear php artisan config:clear ``` @@ -112,7 +116,7 @@ You'll also need to update your database schema for the newest version of Pterod will update the schema and ensure the default eggs we ship are up to date (and add any new ones we might have). Just remember, _never edit core eggs we ship_! They will be overwritten by this update process. -``` bash +```bash php artisan migrate --seed --force ``` @@ -120,7 +124,7 @@ php artisan migrate --seed --force The last step is to set the proper owner of the files to be the user that runs your webserver. In most cases this is `www-data` but can vary from system to system — sometimes being `nginx`, `caddy`, `apache`, or even `nobody`. -``` bash +```bash # If using NGINX or Apache (not on CentOS): chown -R www-data:www-data /var/www/pterodactyl/* @@ -134,7 +138,7 @@ chown -R apache:apache /var/www/pterodactyl/* ### Restarting Queue Workers After _every_ update you should restart the queue worker to ensure that the new code is loaded in and used. -``` bash +```bash php artisan queue:restart ``` @@ -142,7 +146,7 @@ php artisan queue:restart Now that everything has been updated you need to exit maintenance mode so that the Panel can resume accepting connections. -``` bash +```bash php artisan up ```