Skip to content

Commit

Permalink
Merge pull request #87 from pelican-dev/notAreYouScared-patch-1
Browse files Browse the repository at this point in the history
Update update.mdx
  • Loading branch information
notAreYouScared authored Nov 14, 2024
2 parents 70bd420 + 5455fcb commit 37b79d0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/panel/update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@ cd /var/www/pelican
php artisan down
```

<Admonition type="warning">
If you are updating from < 1.0.0-beta13. Please use the below script! This will ensure all the recently deleted files are removed.

Note: this script is experimental... IT WILL NOT CREATE A MYSQL DUMP FOR YOUR DATABASE!
Note Note: This script runs all the below commands for you.

What the script does, is looks for `.env`, and if it exists pulls `DB_CONNECTION` to see if you are using mysql/mariadb/sqlite, if sqlite it will copy the database.sqlite to a backup folder
along with the env. Once they're copied to the backup folder it will delete everything except the backup folder in the specified install directory.

Proceeds to download the latest release, extracts to install directory, Sets some permissions, runs composer install, restores old sqlite database and .env. Runs Filament Optimize, Updates migrations, asks you to input the webserver for file owner (www-data/apache/nginx), restarts the queue, and Voilà! If you have any issues please reach out on discord!

If you do not wish to use the script and wish to do it manually, You can delete everything except the `.env` and the sqlite database file, if using sqlite. then follow the standard update process below.

```sh
bash <(curl -s https://gist.githubusercontent.com/notAreYouScared/fa2b0839f001e9d765b96fdd91a56a04/raw/78feb24f393acb03a391e57f1b88361a9714bcc6/PelicanUpdate)
```

</Admonition>

### Download Update

The first step in the update process is to download the new panel files from GitHub. The command below will download
Expand Down

0 comments on commit 37b79d0

Please sign in to comment.