Skip to content

Commit

Permalink
Merge pull request #81 from Boy132/update-for-next-beta
Browse files Browse the repository at this point in the history
Update for next beta
  • Loading branch information
notAreYouScared authored Oct 27, 2024
2 parents fd05138 + aa2446f commit 169a397
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 42 deletions.
2 changes: 1 addition & 1 deletion docs/panel/advanced/mysql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ You do not have to run this if this is the first time you are installing the Pan

```sh
cd /var/www/pelican
php artisan p:environment:setup
php artisan p:environment:database
```
38 changes: 0 additions & 38 deletions docs/panel/panel-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,44 +50,6 @@ chmod -R 755 storage/* bootstrap/cache/
</TabItem>
</Tabs>

### Crontab Configuration

We need to create a new cronjob that runs every minute to process specific tasks, such as session cleanup and scheduled tasks.
You'll want to open your crontab.

<Tabs groupId="webserver">
<TabItem value='NGINX/Apache'>
```sh
sudo crontab -e -u www-data
```
</TabItem>
<TabItem value='Rocky Linux NGINX'>
```sh
sudo crontab -e -u nginx
```
</TabItem>
<TabItem value='Rocky Linux Apache'>
```sh
sudo crontab -e -u apache
```
</TabItem>
</Tabs>

And then paste the line below.

```sh
* * * * * php /var/www/pelican/artisan schedule:run >> /dev/null 2>&1
```

### Setting up Queue Service

Once you install the panel and set up the cron-tab the last step to take is to set up the queue service. This can be
done with the command below.

```sh
sudo php artisan p:environment:queue-service
```

### Web-Installer

Once you've set the proper permissions & created the Cron & Queue worker, continue the Panel install on the web interface.
Expand Down
14 changes: 11 additions & 3 deletions docs/panel/update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This documentation covers the process for updating the panel portion of Pelican.
## Version Requirements

Each version of Pelican Panel also has a corresponding minimum version of Wings that
is required for it to run.
is required for it to run.

Please see the chart below for how these versions line up. In
most cases your base Wings version should match that of your Panel.
Expand Down Expand Up @@ -65,6 +65,14 @@ php artisan view:clear
php artisan config:clear
```

## Cache components

To make sure your panel loads faster you'll want to cache filament components.

```sh
php artisan filament:optimize
```

### Update Database

You'll also need to update your database schema. Running the command below
Expand All @@ -87,12 +95,12 @@ is `www-data` but can vary from system to system &mdash; sometimes being `nginx`
```
</TabItem>
<TabItem value="Rocky Linux NGINX">
```sh
```sh
chown -R nginx:nginx /var/www/pelican
```
</TabItem>
<TabItem value="Rocky Linux Apache">
```sh
```sh
chown -R apache:apache /var/www/pelican
```
</TabItem>
Expand Down

0 comments on commit 169a397

Please sign in to comment.