Skip to content

Commit 1746e3b

Browse files
authored
Updated Updating guide
Fixed some spacing mistakes and added steps for an easier installation.
1 parent 1fbed46 commit 1746e3b

1 file changed

Lines changed: 23 additions & 16 deletions

File tree

  • content/docs/hydrodactyl/installation/native-install

content/docs/hydrodactyl/installation/native-install/updating.mdx

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ description: How to update Hydrodactyl panel
1717
### Update Dependencies
1818
Check your current versions by running
1919
```bash
20-
php -v
21-
composer --version
20+
php -v
21+
composer --version
2222
```
2323
they should match at least the minimum version supported by the release your installing.
2424

25-
### Self Upgrade
25+
## Self Upgrade
2626
This is a feature in the works. It is planned for development and release at a soon point in the future.
2727

2828

@@ -38,6 +38,14 @@ description: How to update Hydrodactyl panel
3838

3939
php artisan down
4040
```
41+
### Set permissions
42+
43+
This is a temporary change to make the following setup easier. This will be changed back later!
44+
`$(id -un):$(id -gn)` changes the ownership of the files to your current user. You can alter this if you know what you are doing.
45+
46+
```bash
47+
chown -R $(id -un):$(id -gn) /var/www/hydrodactyl/.
48+
```
4149

4250
### Download the Update
4351

@@ -46,39 +54,41 @@ description: How to update Hydrodactyl panel
4654
save it in the current directory and will automatically unpack the archive into your current folder.
4755

4856
```bash
49-
curl -L https://github.com/blueprintframework/hydrodactyl/releases/latest/download/panel.tar.gz | tar -xzv
57+
curl -L https://github.com/blueprintframework/hydrodactyl/releases/latest/download/panel.tar.gz | tar -xzv
5058
```
5159
Once all of the files are downloaded we need to set the correct permissions on the cache and storage
52-
directories to avoid any webserver related errors.
60+
directories to avoid any webserver related errors:
5361

62+
```bash
5463
chmod -R 755 storage/* bootstrap/cache
64+
```
5565

5666
### Update Dependencies
5767

5868
After you've downloaded all of the new files you will need to upgrade the core components of the panel.
5969
To do this, simply run the commands below and follow any prompts.
6070

6171
```bash
62-
composer install --no-dev --optimize-autoloader
72+
composer install --no-dev --optimize-autoloader
6373
```
6474

6575
You must also check for updated and new pnpm dependencies. This can be done by running
6676
```bash
67-
pnpm i
77+
pnpm i
6878
```
6979

7080
### Build New frontend assets
7181

7282
```bash
73-
pnpm build
83+
pnpm build
7484
```
7585

7686
### Clear Compiled Template Cache
7787

7888
You'll also want to clear the compiled template cache to ensure that new and modified templates show up correctly for users.
7989
```bash
80-
php artisan view:clear
81-
php artisan config:clear
90+
php artisan view:clear
91+
php artisan config:clear
8292
```
8393

8494
### Database Updates
@@ -87,7 +97,7 @@ description: How to update Hydrodactyl panel
8797
</Callout>
8898

8999
```bash
90-
php artisan migrate --seed --force
100+
php artisan migrate --seed --force
91101
```
92102

93103
### Set Permissions
@@ -110,15 +120,12 @@ description: How to update Hydrodactyl panel
110120
### Restarting Queue Workers
111121

112122
```bash
113-
php artisan queue:restart
123+
php artisan queue:restart
114124
```
115125

116126
### Exit Maintenance Mode
117127

118128
Now that everything has been updated you need to exit maintenance mode so that the Panel can resume accepting connections.
119129
```bash
120-
php artisan up
130+
php artisan up
121131
```
122-
123-
124-

0 commit comments

Comments
 (0)