Skip to content

Commit ab51c9e

Browse files
authored
Add info about themes to update guide (#194)
* add info about themes * change `php artisan optimize` to `php artisan filament:optimize` in manual update steps * fix markdown header level * remove view:clear * change order of steps
1 parent d492103 commit ab51c9e

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

docs/panel/update.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ You have two options for updating: use the automatic update script (recommended)
7272
sudo php artisan storage:link
7373
```
7474

75-
## Cache components
75+
### Cache components
7676

7777
```sh
7878
sudo php artisan optimize:clear
79-
sudo php artisan optimize
79+
sudo php artisan filament:optimize
8080
```
8181

8282
### Update Database
@@ -89,6 +89,15 @@ You have two options for updating: use the automatic update script (recommended)
8989
sudo php artisan migrate --seed --force
9090
```
9191

92+
### Themes
93+
94+
If you previously had any themes installed you need to manually build the panel assets again:
95+
96+
```sh
97+
yarn install
98+
yarn build
99+
```
100+
92101
### Set Permissions
93102

94103
The last step is to set proper ownership of the files. In most cases this
@@ -129,3 +138,4 @@ You have two options for updating: use the automatic update script (recommended)
129138
```
130139
</TabItem>
131140
</Tabs>
141+

static/updatePanel.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ fi
199199
php artisan queue:restart
200200

201201
echo "Panel Updated!"
202-
echo "To make sure permissions are correct, please run the following commands manually if they might have silently failed earlier:"
202+
echo "If you previously had any themes installed you need to build the panel assets again by manually running \"yarn install\" and \"yarn build\" inside \"$install_dir\"."
203+
echo ""
204+
echo "To make sure permissions are correct, please run the following commands manually:"
203205
echo "sudo $chmod_command"
204206
echo "sudo $chown_command"
205207
exit 0

0 commit comments

Comments
 (0)